-->
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: UserTransaction status always NO_TRANSACTION in commit()
PostPosted: Wed Mar 01, 2006 4:44 pm 
Newbie

Joined: Thu Feb 23, 2006 3:46 pm
Posts: 5
Using JBoss 4.0.3 and hibernate 2.1.8 my objects are never added to the second level cache after save. I did some digging and inside JTATransaction.afterCommitRollback() after a successful commit, it gets the status of the transaction and does a

session.afterTransactionCompletion(status==Status.STATUS_COMMITTED);

The status from the UserTransaction always comes back as STATUS_NO_TRANSACTION, not STATUS_COMMITTED so farther down it doesn't get put into the second level cache when it checks the results of the condition above.

Is this a Hibernate bug? JBoss bug? Setup issue? Otherwise transactions and second level cache are working fine. I just noticed new objects were not put into second level cache.

Thanks in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 15, 2006 12:21 pm 
Newbie

Joined: Thu Feb 23, 2006 3:46 pm
Posts: 5
Nobody has seen this? I modified JTATransaction.java to use the commitFailed boolean instead of the transaction status. Are there any issues with this? I'd rather not hack hibernate code if there is a fix for this bug.


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.