-->
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.  [ 3 posts ] 
Author Message
 Post subject: Any Problem With Multiple SessionFactories?
PostPosted: Fri Jul 09, 2004 7:08 pm 
Beginner
Beginner

Joined: Wed Mar 17, 2004 7:59 am
Posts: 24
We are currently developing an application that will end up having 3 SessionFactory instances, with slightly different mappings pointing to the same database and tables. Unfortunately timescales of the project is restricting our ability to rationalize these to use a single SessionFactory.

One will be used for general updating, while the other two will be used for search queries.

Can anyone offer any advice on the pro's/con's of this type of useage, in particular is there anything that may give us problems.

Many thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 09, 2004 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Shouldn't be a problem as long as you're not using the second-level cache. If you do, you'd have to use a cluster cache to synchronize the SessionFactories.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jul 09, 2004 7:12 pm 
Beginner
Beginner

Joined: Wed Mar 17, 2004 7:59 am
Posts: 24
Thanks for the quick response, we're using the second level cache on one of the SessionFactory configurations, the other two won't use them as they are for searching only. So I guess we should be ok.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.