-
1. Re: merging persistence units
smarlow Sep 14, 2011 9:48 AM (in response to martian)1 of 1 people found this helpfulHave you tried updating as7/standalone/configuration/standalone.xml to remove the jpa subsystem? Look for the following lines:
<subsystem xmlns="urn:jboss:domain:jpa:1.0">
<jpa default-datasource=""/>
</subsystem>
I don't like this solution as applications that use EE container managed JPA will not work but it might be something for you to try.
-
2. Re: merging persistence units
martian Sep 15, 2011 10:03 PM (in response to smarlow)Thanks for the response Scott... I started going in the direction you suggested and made some progress. But I agree that changing the application server configuration to address this didn't sound good.
In the end, I changed the "persistence.xml" to "spring-persistence.xml" and configured the "MergingPersistenceUnitManager" to look for META-INF/spring-persistence.xml (instead of META-INF/persistence.xml) through the "persistenceXmlLocations" property. Since JBoss looks for META-INF/persistence.xml, it didn't load it.