If the component is a stateful session bean to which an extended persistence context has been bound and there is a different persistence context bound to the JTA transaction, an EJBException is thrown by the container? How and when, this scenario can arise?
Is there any good book that talks about Context/transaction propogation?
If you have a stateless session bean which have container managed persistence context.In this case when you call any method of entity manager at this pont a new persistence context is created and associated with your JTA transaction. Now if this bean call statefull session bean to which an extended persistence context has been bound and has transaction attribute REQUIRED, MANDATORY in this case JTA transaction already has one persistence context bound and statefull session bean now try to bound another persistence context hence you have big EJBException.
Hope i explain correctly.
SCJP 1.4 (93%)<br />SCBCD 5 (96%)
He was expelled for perverse baking experiments. This tiny ad is a model student: