This content has been marked as final.
Show 3 replies
-
1. Re: SMPC and explicit transactions
pmuir Sep 18, 2007 1:02 PM (in response to monkeyden)Version of Seam?
-
2. Re: SMPC and explicit transactions
monkeyden Sep 18, 2007 1:36 PM (in response to monkeyden)Thanks for the response Pete. It's 1.2.1.
-
3. Re: SMPC and explicit transactions
monkeyden Sep 19, 2007 3:45 PM (in response to monkeyden)For posterity sake....
In my EJB I just injected the SessionContext and the EM:@Resource SessionContext ejbContext; @In private EntityManager em;
And had the EM join the transaction:UserTransaction txn = ejbContext.getUserTransaction( ); txn.begin(); em.joinTransaction(); //do something txn.commit();
Example taken from Bill's great book
http://www.oreilly.com/catalog/entjbeans5/