-->
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.  [ 4 posts ] 
Author Message
 Post subject: Drawbacks to Multiple Session Factories?
PostPosted: Tue Mar 08, 2005 11:34 am 
Newbie

Joined: Tue Mar 08, 2005 11:29 am
Posts: 14
I hate to ask a question that's already been asked but I did spend quite a bit of time searching the forums before asking this question.

We have a use-case that would require us to use multiple databases (and therefore multiple session factories). What are the drawbacks, if any, to doing this? I ask because it seems like the Hibernate team has some reservations about using multiple session factories or am I just reading into the responses?

Thanks in advance,
Chris


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 12:04 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Well you cannot define entity associations between SessionFactories. If you access both within the same use-case you'd probably need 2-phase-commit across the various data stores.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 3:56 pm 
Newbie

Joined: Tue Mar 08, 2005 11:29 am
Posts: 14
Thanks! I guess you also lose the ability to use the second-level cache too?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 08, 2005 5:08 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 3:00 pm
Posts: 1816
Location: Austin, TX
Not really.


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