[jboss-user] [EJB 3.0] - Re: Same datasource in multiple ear applications

apill do-not-reply at jboss.com
Fri Sep 22 08:13:43 EDT 2006


Or, instead of doing the following...


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

can I look up the EntityManager from within a session bean by its persistence-unit name instead of via its jndi binding name?

Thanks.
Adrian

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

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



More information about the jboss-user mailing list