This content has been marked as final.
Show 1 reply
-
1. Re: Problem with custom PersistenceProvider packed within the application - what am I missing?
white_crow Apr 4, 2016 11:01 AM (in response to white_crow)Hi
I found the solution! In order to activate JTA for a custom PersistenceProvider, it is important to provide the eclipselink.target-server property and set it to JBoss:
<persistence>
<persistence-unit>
<class>org.url.my.TestEntity</class>
<provider>org.url.my.CustomPersistenceProvider</provider>
<jta-data-source>java:/jdbc/myappy</jta-data-source>
<properties>
<property name="jboss.as.jpa.providerModule" value="application"></property>
<property name="eclipselink.target-server" value="JBoss"></property>
</properties>
</persistence-unit>
</persistence>
Cheers