This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 17271
    
    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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Create Two Session Factories in Spring
 
jQuery in Action, 3rd edition