1 Reply Latest reply on Mar 29, 2003 5:09 PM by adrian.brock

    Check If JBoss Is Started

    shorrockin

      I'm working on an application that utilizes many of the features of JBoss (and JBossMX) to build a modularized framework.

      I've currently ran into a problem that, after many attempts, has me stumped.

      What I require is a way, within the JVM, to see if the server has finished loading, and thus is started. More specifically what would be GREAT would be if I could get a reference to the current org.jboss.system.server.Server object, or even the org.jboss.system.server.ServerImpl object so that I could call 'boolean isStarted();' method.

      Is there any way I can retrieve a reference to this object? OR is there anything I can do accomplish the same type of thing (some way to check to see if everything is done being configured).

      Any help would be GREATLY appreciated. Thank you.

      - Chris Shorrock

        • 1. Re: Check If JBoss Is Started

          Look at the deployment scanner.
          If the state is 3 (started) that is as close
          as you will get.
          JBoss is never really started because you
          can always hotdeploy new features.
          The deployment scanner goes to started
          after it has done the first pass on the deploy
          directory.

          Regards,
          Adrian