-->
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: JTATransaction and session.close()
PostPosted: Wed Aug 11, 2004 10:24 am 
Newbie

Joined: Mon Dec 22, 2003 10:00 am
Posts: 11
Location: Switzerland
Hello,
a question about the usage of JTATransaction along with the usage pattern described in http://www.hibernate.org/hib_docs/refer ... exceptions.

In my code a transaction spawns across multiple codes execution all implemented using the pattern above, i.e. there are many Session instances involved:

1) start transaction
2) code execution 1
3) code execution 2
4) ...
5) commit transaction

Every code execution terminates with a Transaction.commit(), but the "real" transaction didn't yet commit, so is it right that the JTATransaction implementation calls session.afterTransactionCompletion(status==Status.STATUS_COMMITTED); on step 2), 3) and 4) even if the status is not yet == Status.STATUS_COMMITTED (it will be only after a successful step 5)) ?

That is although the transaction may end up correctly, the session instances will never be correctly notified of a successful commit.

Best Regards
Massimo


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.