-->
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: registerSynchronization doesn't work with JTATransactions?
PostPosted: Thu Sep 01, 2005 4:31 pm 
Beginner
Beginner

Joined: Mon Sep 27, 2004 4:28 pm
Posts: 44
Hibernate version:3.0

I have a component that needs to participate in my hibernate transaction. In my unit tests, where I'm using JDBC Transactions, I call registerSynchronization() and get a callback with the status of the transaction on completion. However, when I ran this in the container, it didn't work for me. Instead, the JTATransaction class throws an IllegalStateException. Upon further inspection, it seems that the implementation of that method in JTATransaction involves a few lines of code which will always throw this exception. Is this a bug? Is there another way I should be doing this?

thanks,
Phill


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 02, 2005 12:28 pm 
Beginner
Beginner

Joined: Mon Sep 27, 2004 4:28 pm
Posts: 44
For anyone who has the same problem.. it looks like it was, in fact, a bug (HHH-913). The fix is slated for 3.1 RC1.


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.