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.  [ 6 posts ] 
Author Message
 Post subject: Synchronize multiple hibernate instances
PostPosted: Mon Mar 03, 2008 12:05 pm 
Newbie

Joined: Thu Feb 21, 2008 12:30 pm
Posts: 7
Hello ,


We have one db server and several application servers.
We would like to deploy hibernate on each of the app servers.
Would it be possible to synchornize them with each other ?
Either through the database or directly with one another.

Best regards

Ishai


Top
 Profile  
 
 Post subject: Re: Synchronize multiple hibernate instances
PostPosted: Mon Mar 03, 2008 12:18 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
ٌwhat do you mean by synchronizing them?


Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 2:42 pm 
Newbie

Joined: Thu Feb 21, 2008 12:30 pm
Posts: 7
if an object value (and a record value in the db) changes , that all the hibernate instances will be updated with the new value.
maybe its trivial , but were still in the theortical testing of hibernate and havnt acctually installed it :)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 2:45 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
Ishai wrote:
if an object value (and a record value in the db) changes , that all the hibernate instances will be updated with the new value.
maybe its trivial , but were still in the theortical testing of hibernate and havnt acctually installed it :)



hibernate's memory from database has a short life span and it is usually within scope of a transaction and with an appropriate isolation level you will eliminate most of sync problems. However, if you use a L2 cache the story is different since hibernate keeps a copy of database values. In a multi node environment however you can sync caches. This however works if all updates are being made with hibernate and no other layer.




Farzad-


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 6:19 pm 
Newbie

Joined: Thu Feb 21, 2008 12:30 pm
Posts: 7
thank you very much !

can you please reference me to the right place or title in the documents ?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 03, 2008 6:22 pm 
Expert
Expert

Joined: Wed Apr 11, 2007 11:39 am
Posts: 735
Location: Montreal, QC
[quote="Ishai"]thank you very much !

can you please reference me to the right place or title in the documents ?[/quote


You may go ahead and read the section that talk about hibernate caching. However, the distributed cache solution is not a hibernate concerns and you will have to read a cache implementation's document. For example, ehcache is a very good one.



Farzad-


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