-
Type:
Bug
-
Status: Closed
-
Resolution: Won't Fix
-
Affects Version/s: 6.1.1 CE GA2
-
Fix Version/s: 6.1.1 CE GA2
-
Component/s: Environments, Environments > Databases
-
Labels:None
-
Environment:Liferay 6.1.0 CE GA1, Spring 3
I'm using Spring 3.1.X and Postgres 1.14.2
I had done JTA related configurations with the help of below link
https://www.liferay.com/community/wiki/-/wiki/Main/JTA-XA+on+Tomcat#section-JTA-XA+on+Tomcat-JNDI+Parameters
and using this link (http://simplespringtutorial.com/springDeclarativeTransactions.html), I used Annotation type Declarative Transaction Management.
Placed @Transactional (isolation = Isolation.DEFAULT, propagation = Propagation.REQUIRES_NEW, rollbackFor =
{Exception.class}, readOnly=false)
--> Above the method definition in Impl.java.
--> Before the method definition i.e.; in Interface.
But I'm not able to rollback the transactions for <liferay -related>LocalServiceUtil classes. Not sure what I'm missing out, Please help me to make it work.
Example I'm using to test,
After saving I'm throwing an PortalException in Impl class.