-->
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: hibernate and other application updating Mysql database simu
PostPosted: Wed Jun 08, 2005 7:50 am 
Newbie

Joined: Wed Jun 08, 2005 7:32 am
Posts: 5
I have developed an application with hibernate2 and mysql-4.1 database.
I am not using any second level caching.
Now once my web application is started and after that if any new row is inserted in the database directly the hibernate application is unable to get the new row from the database.

If i am killing the existing connections of the connection pool from the mysql database server then my hibernate application gets the new row from the database, seems that the connection is caching the objects.

I am using c3p0 connection pooling.

I am not able to get the problem or the solution for the problem.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 10, 2005 2:40 pm 
Newbie

Joined: Fri Jun 10, 2005 2:34 pm
Posts: 1
Hello. U have to change the transaction isolation level of your mysql db.
The default in mysql is repetable read. Set it to 2 (read commited) and clear your 1st level cache/session.


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.