-->
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: Spring - Hibernate - Transaction does not commit.
PostPosted: Fri Sep 08, 2006 8:08 am 
Beginner
Beginner

Joined: Fri Sep 08, 2006 7:29 am
Posts: 36
Hi,

I am using Spring 1.2.8 Hibernate 3.1 and MySQL.

The transactions are managed using Spring. I am facing a problem where transactions are not comitted to the database.

I have seen the logs and the queries generated by Hibernate. The Logs show that a Transaction is created comitted and closed. The Hibernate SQL queries show INSERTS in the database.

I have been trying to find out the cause and have posted detailed questions here...

http://forum.springframework.org/showthread.php?t=28818

http://forum.springframework.org/showthread.php?t=28796

After, I added auto_commit="true" in the ibernate.cfg.xml file, it has started working fine i.e. I could see the INSERTED records in the tables, but I am not sure how appropriate would it be to use auto_commit. I am handling a system which carries out financial transactions.

Any help would be highly appreciated.

Best Regards,
Shardul Bhatt.


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.