Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-38303

Transaction rollback not working in JTA environment

    Details

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            mika.koivisto Mika Koivisto (Inactive)
            Reporter:
            sarvani Sarvani Ch (Inactive)
            Participants of an Issue:
            Recent user:
            Esther Sanz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              8 years, 44 weeks, 3 days ago

                Packages

                Version Package
                6.1.1 CE GA2