1 Reply Latest reply on Oct 22, 2007 11:58 AM by peterj

    How is shutdown.sh related to jmx-console?

    konstandinos

      Hi

      I've figured out that in order to call shutdown.sh correctly from my /etc/init.d/jboss script (ie: when I type /etc/init.d/jboss stop) I need to use the arguments: -S -u username -p password

      ... and that this username/password pair is defined in JBOSS_HOME/server/default/conf/properties/jmx-console-users.properties

      Now I'm wondering, what does the jmx-console webapp have to do with shutting down my JBoss instance? And since shutdown.sh is associated to jmx-console, why isn't run.sh?

      I've followed the steps in securing my JBoss instance. Thus jmx-console isn't being used at all. I'm wanting to remove it alltogether, including its .properties files in the server's conf/ directory. But it seems shutting down my server correctly depends on the existenece of these .properties files.

      Thanks.

        • 1. Re: How is shutdown.sh related to jmx-console?
          peterj

          They are related only because they both refer to the same security, which of course refers to that properties file. The JMX Invoker is configured in server/default/deploy/jmx-invoker-service.xml:

          <interceptors>
           <!-- Uncomment to require authenticated users -->
           <interceptor code="org.jboss.jmx.connector.invoker.AuthenticationInterceptor"
           securityDomain="java:/jaas/jmx-console"/>
          


          You can change the security domian to any other security domain defined in the server/default/conf/login-conf.xml file, or you can set up your own.