- Posts: 125
- Joined: Thu Jul 05, 2018 6:44 pm
Propagation does not depend on the type of the bean but on the type of the EntityManager. It will be propagated for all kinds of beans if the EntityManager is container managed.
If a bean uses BMT, does that mean the persistence context is not propagated?
- Site Admin
- Posts: 8134
- Joined: Fri Sep 10, 2010 9:26 pm
This explanation is for the option that talks about "stateful session bean". It is in this context that the explanation says that propagation does not depend on the type of the bean but on the type of the EntityManager. So here, type refers to the type of the bean i.e. stateful/stateless session, entity etc. Not the type of the transaction. If the entity manager is container managed, transaction will be propagated for all types of beans.
Regd. what happens in case of BMT, you will need to go through Section 13.6.1 Bean-Managed Transaction Demarcation of EJB 3.1 spec. Because it is a bit too much to summarize here without the risk of being taken out of context.
If you like our products and services, please help us by posting your review here
Users browsing this forum: No registered users and 4 guests