Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-16930

Batch subsystem should maintain its own cache of services

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • Batch
    • None
    • ---
    • ---

      Batch subsystem currently uses org.jboss.msc.service.ServiceController#getService to retrieve services. For instance, 

      BatchSubsystemDefinition and JobOperationStepHandler

      https://github.com/wildfly/wildfly/blob/main/batch-jberet/src/main/java/org/wildfly/extension/batch/jberet/deployment/JobOperationStepHandler.java#L72

      This method has been deprecated, with no direct replacement:

          /**
           * Get the service.
           *
           * @return the service
           * @throws IllegalStateException if the service is not available (i.e. it is not up)
           * @deprecated this method will be removed in a future release
           */
          @Deprecated
          Service<S> getService() throws IllegalStateException;
      

      In the chat discussion, it's recommended for each subsystem to maintain its own cache of desired services, similar to clustering in this PR.

            weli@redhat.com Weinan Li
            cfang@redhat.com Cheng Fang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: