-->
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: BatchUpdate returning unexpected row count after network dis
PostPosted: Fri May 18, 2007 1:33 pm 
Newbie

Joined: Fri May 18, 2007 1:14 pm
Posts: 1
Location: Virginia, USA
Hello all:

I have an application that runs the same code on two different databases: one on a remote host (Oracle) and one on the local box (Cache). The remote host is used as the master repository and is used to update the local box periodically through Hibernate. Normally there is a network connection between the two boxes and everything works well. However, the system is designed so that the local box can still work when disconnected from the network. The problem occurs when the box is reconnected. At this time I noticed that the connection that the Session was holding was closed. So I wrote code to reestablish the SessionFactory object which also recreated the connection. One of the things done was to close the SessionFactory object. This was done so that the cache would get wiped of any persistent objects. The code works well except for one table, which still gives me the "BatchUpdate returned unexpected row count" error on a session.update() call. Any ideas on ways to get around this problem?


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.