[jboss-dev-forums] [JBoss Transactions Development] - Re: EnityManager.close() before or after JTA afterCompletion()?

Tom Jenkinson do-not-reply at jboss.com
Mon Feb 4 10:37:24 EST 2013


Tom Jenkinson [https://community.jboss.org/people/tomjenkinson] created the discussion

"Re: EnityManager.close() before or after JTA afterCompletion()?"

To view the discussion, visit: https://community.jboss.org/message/795968#795968

--------------------------------------------------------------
Hi Seyvet,

I wouldn't want to comment on whether afterCompletion is the right place to call close for JPA, the thread you reference is probably the best place to discuss that. We are more concerned with raw transactions in this forum.

Tx::enlistResource(RM rm)
Tx::registerSynchronization(S s)
foreach Synchronization
   S::beforeCompletion();
foreach ResourceManager
   Tx::prepare()
foreach ResourceManager
   Tx::commit()
foreach Synchronization
Tx::afterCompletion

Tom
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/795968#795968]

Start a new discussion in JBoss Transactions Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2041]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20130204/1d8512c9/attachment.html 


More information about the jboss-dev-forums mailing list