-->
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.  [ 3 posts ] 
Author Message
 Post subject: direct jdbc changes are not committed to data base!
PostPosted: Wed Sep 20, 2006 8:09 am 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137

Environment: Tomcat 5.5.12 (no JTA)
JVM: Sun JDK 1.5.0_6
Database: Oracle 10g 1


I've got a problem with Hibernate 3.2rc2 + Hibernate Annotaions 3.2 rc1 (when I'd used Hibernate 3.0.5 in my previouse project there was not such a problem):

In both projects (my current project and previous project) I called session.connection() to get the current connection, and then used it to create a CallableStatement to call my stored procedures.

My stored procedures update the database state, so there must be a commit instruction after their execution.

In my previous project with hibernate 3.0.5 when I commited the Hibernate transaction the modifications of the stored procedure were committed to database too, but in Hibernate 3.2rc2 they are not!

Has anybody have the same problem, how to solve it?

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 20, 2006 9:19 am 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137
I've logged org.hibernate.transaction category using log4j, it is logged that jdbc transactions are commited, but unfortunately they don't update database state!

Quote:
[DEBUG] transaction.JDBCTransaction (commit:103) - commit
[DEBUG] transaction.JDBCTransaction (commit:116) - committed JDBC Connection

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 21, 2006 11:53 am 
Senior
Senior

Joined: Sat Nov 27, 2004 4:13 am
Posts: 137
well I've found the problem

when I disable c3p0 connection pool the problem woulld be solved, so is it a bug of connection pool?

_________________
don't forget to credit!

Amir Pashazadeh
Payeshgaran MT
پايشگران مديريت طرح
http://www.payeshgaran.co
http://www.payeshgaran.org
http://www.payeshgaran.net


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.