[jboss-user] [EJB 3.0] - Re: EJB 3.0 Entity problem - Error: Incomplete Deployment li

jaikiran do-not-reply at jboss.com
Mon Mar 31 09:32:39 EDT 2008


anonymous wrote : @PersistenceContext (unitName="tps")
  | 	protected EntityManager em;

Also, as you mention that the persistence.xml is in the same jar (tps-entity.jar) as the EJB, change the above piece of injection code to

@PersistenceContext
  | 	protected EntityManager em;
  | 

This should inject the persistence context of the default persistence unit (in this case the tps persistence unit). Let's see if that works.


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

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



More information about the jboss-user mailing list