Topic
1 reply Latest Post - ‏2012-09-07T17:59:03Z by manishpoddar
manishpoddar
manishpoddar
5 Posts
ACCEPTED ANSWER

Pinned topic How to mark setRollBackOnly in case of CMT

‏2012-09-07T03:23:14Z |
I want to mark CMT for rollback in case of business exception.
Since we are not using EJB, sessionContext is not available to me.
Not sure how I could mark setRollBackOnly.
Tried enitityManager.getTranaction().setRollBackOnly().
But that's not working. Seems that I could not use EntityTransaction in case of CMT.
Updated on 2012-09-07T17:59:03Z at 2012-09-07T17:59:03Z by manishpoddar