-->
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: non comm/roll transactions are left active if session closes
PostPosted: Sun Oct 09, 2005 1:19 am 
Newbie

Joined: Wed Sep 14, 2005 11:57 pm
Posts: 2
hibernate 3.1b1

mysql 4.1

connector 3.1.10

If I have an opened transaction in a session, but I do not commit or rollback, when I close the session it leaves my non-(commited/rolledback) transaction wide open! mysql shows it as an active transaction!!!!

shouldnt hibernate try at least commit or rollback if I try to close a session with active transactions?

is it a bug or a feature?

this occurs with or without c3p0 pool.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 09, 2005 8:32 am 
Expert
Expert

Joined: Sat Jun 12, 2004 4:49 pm
Posts: 915
you have to commit/rollback transaction before session commit

If you use anything (no hibernate) and don'tcommit/rollback trnsaction , trasnaction leave opne - its is normal


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.