Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-6035

Improper use of OperationContext.restartRequired()

XMLWordPrintable

      Look or an fix uses of OperationContext.restartRequired() that should be using reloadRequired(). There are very few reasons why a full process restart should be needed for a configuration model change to take effect. Typically a full process restart would only be needed for a domain mode server whose JVM configuration settings have been changed in the host model.

      Running "git grep restartRequired()" shows the following suspicious uses:

      logging/src/main/java/org/jboss/as/logging/HandlerOperations.java: context.restartRequired();
      logging/src/main/java/org/jboss/as/logging/HandlerOperations.java: context.restartRequired();
      server/src/main/java/org/jboss/as/server/operations/ServerRestartRequiredHandler.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/ClientConfigAdd.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/ClientConfigRemove.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/EndpointConfigAdd.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/EndpointConfigRemove.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerAdd.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainAdd.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerChainRemove.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/HandlerRemove.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/PropertyAdd.java: context.restartRequired();
      webservices/server-integration/src/main/java/org/jboss/as/webservices/dmr/PropertyRemove.java: context.restartRequired();

              istudens@redhat.com Ivo Studensky
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: