[jboss-user] [EJB 3.0] - Re: How to get EnitityManager in SLSB without injection??
ALRubinger
do-not-reply at jboss.com
Mon Dec 11 19:52:49 EST 2006
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
More information about the jboss-user
mailing list