[jboss-user] [EJB 3.0] - JNDI and the EntityManager

c_eric_ray do-not-reply at jboss.com
Mon Sep 25 15:14:08 EDT 2006


Instead of injecting the EntityManager like so...

  | @PersistenceContext(unitName="some_name")
  | EntityManager em;
  | 

can I use JNDI to look up an EntityManager with a specific persistence unit?

If so, what would the naming path be?

Thanks.

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

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



More information about the jboss-user mailing list