my dog learned polymorphism*
The moose likes Other Application Frameworks and the fly likes How to Create Two Session Factories in Spring Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Other Application Frameworks
Bookmark "How to Create Two Session Factories in Spring" Watch "How to Create Two Session Factories in Spring" New topic
Author

How to Create Two Session Factories in Spring

Ulaganathan Arunagiri
Greenhorn

Joined: Oct 13, 2008
Posts: 1
Hi,

I want to connect two different databases in spring using Session Factory.So please give me suggestion how to create and access two session factories.

Thanks
Nathan
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Define two of them in your configuration? Each with different names.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
 
subject: How to Create Two Session Factories in Spring
 
Similar Threads
Dynamic Schema Access in Hibernate
HibernateUtil needed for multiple databases
getting hibernate session in Struts2 (Urgent)
Multiple Database configurations with Hibernate and caching
How to create session attribute once the session is established in Spring MVC?