-->
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.  [ 1 post ] 
Author Message
 Post subject: Multiple sessionFactory objects
PostPosted: Mon Feb 12, 2007 11:00 am 
Newbie

Joined: Sat Oct 28, 2006 1:57 pm
Posts: 6
Hi all

We want our applpication to point to two different databases depending on the incoming request.
Is this possible in hibernate, as I assume that we can have only one hibernate.cfg.xml which in turn can have the database details for only one database.

Or can we modify the HibernateUtil such that it creates two sessionFactory objects. is this possible at all ?


Regards
Raj


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

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.