1 Reply Latest reply on Aug 12, 2011 1:44 PM by Wolf-Dieter Fink

    share persistence context in different EARs

    Wolf-Dieter Fink Master

      We try to deploytwo EJB applications with a shared JPA persistence. The persistence is deployed in a separate JAR file, including a persistence.xml.


      Each EAR include neither @Entity classes nor a persistence.xml.

      I've change the PersistenceUnitDependencyResolver element of the ejb3.deployer/META-INF/jpa-deployers-jboss-beans.xml.

      The JBoss version is 5.1.


      But I still have an Exception "Can't find a persistence unit named ...."


      Does anybody have an idea or solution?