Never tried it in the way you've outlined. You can, however, store the EntityManager
and EntityManagerFactory in JNDI and look up from there by putting the following in your
persistence.xml:
<property name="jboss.entity.manager.jndi.name"
| value="java:/entityManager/yourName" />
| <property name="jboss.entity.manager.factory.jndi.name"
| value="java:/entityManagerFactory/YourName" />
S,
ALR
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992936#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...