-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: target 2 databases at the same time
PostPosted: Fri Jan 27, 2006 4:51 pm 
Newbie

Joined: Fri Dec 09, 2005 2:22 pm
Posts: 16
Hi,

I need to use objects coming from 2 different databases in the same application.
How do I do that ?
Instanciate 2 session factories with different condif.xml files ?

thank you
Anthony


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 27, 2006 5:31 pm 
Regular
Regular

Joined: Tue Jan 03, 2006 11:43 am
Posts: 51
Location: Sweden
I should start by saying that I haven't done this myself.. but from what I read you can use the same SessionFactory if the databases use the same schema. Otherwise you need one SessionFactory for each database.

/Carl


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.