I am creating some test WebServices.
This service uses CM Entity Manager, so I have the following line of code:
Now since this in CM Entity Manager with JTA transaction, I dont need to explicitly use UserTransaction as the Container will manage the transactions.
When I call this WS I get an error like
I tried using the UserTransaction and explicitly tried comiting the transaction and it did not give this exception but when I checked the DB there were no records, I have read that I should not be using explicit transactions for CM Entity manager.