Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-628

Support JTA attributes by annotations

    XMLWordPrintableJSON

Details

    Description

      currently, we can use a Blueprint descriptor to define the transaction attribute associated to methods:

      <bean id="myPojo" class="myPojo" init-method="init">
      <tx:transaction method="set*" value="Required"/>
      <tx:transaction method="get*" value="Supported"/>
      </bean>

      I think it could be interesting for the users to define transaction attributes directly in the POJO using annotations.

      For instance, it could be helpful to support the following annotations:
      @PostConstruct
      @PreDestroy
      @Resource
      @TransactionAttribute

      For instance, myPojo will look like:

      public class MyPojo {

      @TransactionAttribute=Required
      public void setData(Data data)

      { ... }

      }

      Attachments

        Activity

          People

            timothyjward Timothy James Ward
            jbonofre Jean-Baptiste Onofré
            Votes:
            3 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: