Can I say an entity manager injected into session bean must be container managed?
Joined: Feb 20, 2003
For application managed entity manager, a EntityManagerFactory should be injected and get the entity manager via EntityManagerFactory.createEntityManager(). For container managed entity manager, it can be directly injected into a session bean.
So, can I say if an entity manager is injected into a session bean, then it should be a container managed one, and a container managed entity manager should be a JTA entity manager, then an injected entity manager in EJB must be a JTA entity manager but never can be a resource-local one?