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

Allow ServiceRequest methods to have own set of lifecycle methods

XMLWordPrintable

      By default if only one type of LifecycleClass is specified, or if the default of the current class is used, then the same LifecycleClass is registered for each @ServiceRequest method.

      Setting the attribute 'single' on @ParticipantService to 'false' allows a different instance of the LifeCycle class to be used for each @ServiceRequest method.

      @Retention(RetentionPolicy.RUNTIME)
      @Target(ElementType.TYPE)
      public @interface ParticipantService
      {
          public boolean single() default true;
      }
      

              paul.robinson@redhat.com Paul Robinson
              paul.robinson@redhat.com Paul Robinson
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: