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#3992936

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992936
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to