-->
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: how to synchronize database data within multi-applications?
PostPosted: Wed Aug 30, 2006 8:37 pm 
Newbie

Joined: Sat Nov 12, 2005 3:31 am
Posts: 7
for examples.

two application want to use the same database.

data will be non-synchronized when one sessionfactory each applicaiton.

how to solve the problem?

any suggestions will be appreciated....Thx.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Aug 31, 2006 8:39 am 
Senior
Senior

Joined: Wed Aug 17, 2005 12:56 pm
Posts: 136
Location: Erie, PA (USA)
1st level cache is in the Session not the SessionFactory. As such, keep your units of work small (limit the life of the session); implement version checking in both applications and be careful using 2nd level cache. While mentioned in the context of Hibernate, these concerns are valid anytime multiple applications are updating a single db.

Good luck,
Curtis ...

_________________
---- Don't forget to rate! ----


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.