This content has been marked as final.
Show 2 replies
-
1. Re: Native SQL Statements not handled by EJB transaction
smarlow Jul 23, 2014 9:13 AM (in response to vst77)1 of 1 people found this helpfulEnable trace logging for org.jboss.jca, org.hibernate, org.jboss.as.jpa and com.arjuna to get more information about what is occurring exactly (from tx start to tx end). Attach the server.log (zip it if large) to this forum. Extra points if you also examine the server.log.
-
2. Re: Native SQL Statements not handled by EJB transaction
vst77 Jul 23, 2014 10:54 AM (in response to smarlow)Thanks Scott. Your answer led me to the correct settings.
Problem was that my datasource was defined correctly in the peristence.xml:
<persistence-unit name="bcore" transaction-type="JTA">
but it wasn't in the standalone.xml
<datasource jta="false" ... >
Thus when setting jta to true, then CMT (and BMT) work correctly!