Does it mean that if session bean is annotated @TransactionManagement(CONTAINER) we still can inject EntityManager (or EntityManagerFactory with @PersistenceUnit) with @PersistentContext and get application-managed transactions?Transaction management type of a session bean and type of entity manager (container managed or bean managed) are two different things. Any type of entity manager can be enlisted in a transaction started by a session bean with bean managed transactions.
If yes, how shall we get transaction instance or proxy : from EJBContext.getUserTransaction(), get it injected with @Resource or @Inject annotations?
Or it means that we can only "manage" entity manager, but we do not control transaction and transaction-management is still done by container?