This content has been marked as final. Show 1 reply
When i try to rollback JDBC connection inside a managed transaction (User Transaction) I am getting
You cannot rollback during a managed transaction!
You seem to be calling rollback() on the java.sql.Connection and not through the UserTransaction object.
If you want to manage the transaction through the jdbc Connection object then configure the datasource of type no-tx-datasoure.
More info can be obtained in JCA specs