-->
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: Same entitymanager joins multiple transactions concurrently.
PostPosted: Tue Jun 12, 2012 9:41 am 
Newbie

Joined: Mon May 12, 2008 4:07 pm
Posts: 5
This question is originated from the drools-jpa-persistence package.
An application-scoped entitymanager (singleton) is shared by all clients. When the entitymanager joins a JTA transaction in one thread, before that transaction ends, it may be invoked on entityManager.joinTransaction() in another thread for a different JTA transaction. My question is how Hibernate session reacts to the joinTransaction() method call. I would expect it suspends the 2nd thread till the 1st transaction ends. Please shed some lights. Many thanks.


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.