This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 17250
    
    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
 
wood burning stoves
 
subject: How to Create Two Session Factories in Spring