-->
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: Could not update the row
PostPosted: Mon May 02, 2005 10:06 am 
Newbie

Joined: Mon May 02, 2005 9:48 am
Posts: 2
My Database version - Mysql 3.23.58

I have a table with one identity column containg say 2000 records
One of the thread in my application tries to update all the 2000 records one by one.

Problem i am facing actually is some of the records doesn't get updated.

To my astonishment i am not getting any exceptions.

For u'r clear understanding,take a look at the code given below

void update(Object obj) {

Session session =
new Configuration().configure().buildSessionFactory().openSession();
Transaction tx = session.beginTransaction();
CDR cdrObj = (CDR) obj;
cdrObj.setStatus ("O");
session.update (cdrObj);
tx.commit();
session.connection().createStatement().execute("SHUTDOWN");
session.close();

}

This particular function gets called for 2000 times in a continous running thread....

Can anybody guess out wht could be the problem & where i am going wrong...


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.