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