-->
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.  [ 1 post ] 
Author Message
 Post subject: SaveOrUpdate in Load Balance environment
PostPosted: Thu May 24, 2007 11:33 am 
Newbie

Joined: Mon Dec 11, 2006 5:18 am
Posts: 9
Hi all,

My application is base on Hibernate 3.1.3 (Java 1.4 j2ee 1.3.1 Tomcat 5.5.20) and runs on a "pure load balance system" (session replication). This means that each request get managed from different servers. Hibernate acts as "Session By Request"

The work flow is the follow:

Application load data from DB and save this data in Tomcat session. Data get modified during the navigation and saved in the Tomcat session until the user decided to persist his modifications.

At this point the application get the object from Tomcat session and persist it by SaveOrUpdate function.

The problem is that all childs of the object are saved, but the old values doesn't get deleted also if the mapping is OK. In fact, in single server environment all runs OK.

I understand the cause: The object loaded from DB and the object Saved on DB are different instance of the same object than Hibernate has not able to link the instance and then can't delete old values.

The problem is that I don't know how to resolve the problem ????
Any ideas ?

Best regards
Ale.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.