1 Reply Latest reply on Sep 20, 2005 3:16 AM by jasperboy

    Shutting down JBoss

    namecaf

      Hi, I'm not sure if this is right place for this question, but since I'm fairly new to JBoss I suppose it's the most appropriate.

      Does anyone know if it's possible to call something in your java code that will effectively shutdown the JBoss server? I'm working on project and the client has requested a feature such that if something serious goes wrong; rather than writing huge logs indefinitely, it will shut itself down.

      Thanks.

        • 1. Re: Shutting down JBoss
          jasperboy

          You could use the MBean interface, jboss.system:type=Server and invoke the shutdown() operation.

          I've been looking at the EJB3 server, and there's a very easy way to access MBeans and invoke them.