This content has been marked as final. Show 3 replies
Version of Seam?
Thanks for the response Pete. It's 1.2.1.
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