IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
1 reply Latest Post - ‏2012-09-07T17:59:03Z by manishpoddar
5 Posts

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