users@glassfish.java.net

Re: JCA question regarding transactions

From: <glassfish_at_javadesktop.org>
Date: Wed, 16 Jun 2010 10:02:42 PDT

If part of the execution stack happens outside a transaction, I'd do it this way:
- Mark EJB as BMT (bean-managed tx)
- At the end of the business method:
-- start UserTransaction,
-- call em.joinTransaction();
-- commit utx.

All previous changes should be committed at this point.

Best,
-marina
[Message sent by forum member 'mvatkina']

http://forums.java.net/jive/thread.jspa?messageID=474538