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: Can multiple Hibernate instances access the same DB?
PostPosted: Tue Mar 07, 2006 11:18 am 
Newbie

Joined: Fri Feb 17, 2006 4:46 am
Posts: 10
Is is possible to access the same DBMS from multiple Hibernate instances possibly running on another system?
What implications does this have? I could imagine Hibernate events not to be working anymore.
What is a good approach to high availability?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 07, 2006 11:55 am 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
yes

the implications are the same if you were using jdbc. reading should be just fine but when it comes to updating...

either you'll have very complex code or you'll get numerous errors if you try to update rows if they've been changed by another application

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


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.