[jboss-user] [EJB 3.0] - Re: Dependency Injection of EntityManager / -Factory in Serv

ALRubinger do-not-reply at jboss.com
Wed Mar 14 14:53:50 EDT 2007


Couple things:

* Injection is not supported in Servlets for 4.0.5 - it's coming soon as it's defined by the JEE5 Spec
* To put your EM in JNDI, you need to add a couple lines to your persistence.xml (This post http://jboss.org/?module=bb&op=viewtopic&t=96857 addresses this issue)
* Ensure your lookup is correctly pointed to the EM (http://wiki.jboss.org/wiki/Wiki.jsp?page=DisplayTheJDNITreeWithTheJMXConsole)

Good luck. :)


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4028121#4028121

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4028121

More information about the jboss-user mailing list