1 Reply Latest reply on Mar 13, 2009 1:02 PM by peterj

    How to use shutdown script with servername

    mkprabhu_2009

      Hi

      What is the correct format to use for serverName switch in /bin/shutdown script?

      shutdown.bat --serverName=default
      gave the following exception

      Exception in thread "main" javax.management.MalformedObjectNameException: Key properties cannot be empty
       at javax.management.ObjectName.construct(ObjectName.java:393)
       at javax.management.ObjectName.<init>(ObjectName.java:1304)
       at org.jboss.Shutdown.main(Shutdown.java:166)


        • 1. Re: How to use shutdown script with servername
          peterj

          Are you sure you want to use the --serverName option and not the --server option? For the --server option, you use the hostname and optionally the URL. For --serverName you need to know the object name of the MBean that contains the shutdown() method. By default, this is jboss.system:type=Server.