-->
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: Multiple instances of the same application Hibernate
PostPosted: Sat Mar 04, 2006 8:17 am 
Newbie

Joined: Sat Mar 04, 2006 8:06 am
Posts: 1
Hello,
I am trying to implement a solution to setup multiple instances of the tomcat running the same application (this is just to provide scalability in terms of putting more machines to support a legacy application). The application uses Hibernate for the OR-DBMS persistence. I have been told that there may data consistency issues in using this approach.
So here is what I am trying to do.

Setup one tomcat server running Application A (using hibernate to connect to the database (say B).
Setup another tomcat server running Application A (using hibernate to connect to same database.

I have been told that as Hibernate using Cache to synchronize with the database therefore there may be chance of data corruption when using two hibernate instances to connect to the same database.
I checked the serverside.com where I found a similar question asked but without any satisfactory response.
Please note that the application is highly mission critical and the data is extremely sensitive.
thanks
Ali


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 06, 2006 4:07 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
Quote:
Setup one tomcat server running Application A (using hibernate to connect to the database (say B).
Setup another tomcat server running Application A (using hibernate to connect to same database.


this may create data inconsistency but not only for hibernate . even if u are not using hibernate data inconsistency is a main bottle neck to developing efficient mission critical application . i think you can make use of powerful features in hibernate (like versioning and pesimistic locks ... ) for efficient data management

_________________
sHeRiN
thanks for your ratings ...... :)


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.