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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...