Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-976

Support multiple lifecycle methods of the same type targeted at the same ServiceRequest

    XMLWordPrintable

    Details

      Description

      A LifecycleClass implementation should be able to register multiple methods with the same Lifecycele annotation. For example, this would allow more than one compensation method to be triggered.

      Example:

       
      @ServiceRequest()
      public void submitOrder(...)
      {
        ...
      }
       
      @Compensate
      public void cancelOrder()
      {
        //Cancel the order
      }
       
      @Compensate
      public void notifyAdmin()
      {
        //Notify an admin that an order was cancelled. 
      }
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                paul.robinson Paul Robinson
                Reporter:
                paul.robinson Paul Robinson
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: