This content has been marked as final. Show 2 replies
This turned out to be a problem with the configuration xml files. When I narrow the exact cause down I will post.
Did you name your entitymanager in your persistence.xml?:
<entity-manager> <name>manager1</name> ... </entity-manager>
In that case you need to put untName on the Injection:
@PersistenceContext (unitName = "manager1") private EntityManager manager1;
(see getManagedEntityManagerFactory in org.jboss.ejb3.injection.PersistenceContextHandler)