>From the same paragraph:
anonymous wrote : In less common use cases within Java EE environments,
applications may need to access a persistence context that is
?stand-alone??i.e. not propagated along with the JTA transaction across the
EntityManager references for the given persistence unit.
|
"Technically" it just needs to support the EntityManager, not the method of
retrieving it.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068718#4068718
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068718
___
Hi
Thanks for the response.
Please look at 5.1 , second last paragraph. It says
"Both container-managed entity managers and application-managed entity managers
and their persistence contexts are required to be supported in Java EE web
containers and EJB containers. "
Would not that imply that
>From the EJB3 Persistence spec (section 5.3, page 116) it says to use:
EntityManagerFactory emf =
| javax.persistence.Persistence.createEntityManagerFactory("Order");
| EntityManager em = emf.createEntityManager();
when working in a Java SE environment.
When working in an EE container use in