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?
The dependenvy resolver to find persistence globaly ignore the jar with the persistence if any other bean class exist in this archive.
Also there should no persistence.xml with the unit in other *AR files.
Retrieving data ...