3 Replies Latest reply on Nov 9, 2010 10:51 AM by jithu.mada

    twiddle to find the status of web app

    jithu.mada

      Hi,

       

      Is there a way to find the status of deployed web application using the twiddle command, all I could find was to stop and start it but nothing to find it current status ( up or down) like we see in the admin-console.

       

      This is our environment Jboss 5.1.0.GA, AIX 6.1, Jdk 6.

       

      Thanks,

       

      Jithu

        • 1. Re: twiddle to find the status of web app
          jaikiran

          See if this helps http://community.jboss.org/wiki/StartupAndDeploymentCheck. I haven't checked whether the deployment related MBeans work against AS5.x.

          • 2. Re: twiddle to find the status of web app
            f_marchioni

            I remember with the release 4.x it was a two proces step- at first you would get the web application deployment id and then query for its status.

            Check also this jboss howto

            Let us know if it works on JBoss 5, I'm curious too.

            • 3. Re: twiddle to find the status of web app
              jithu.mada

              Francesco,

               

              In Jboss 5.1.0.GA when I do twiddle -s localhost:1099 query jboss.web.deployment:*, the output is list of war files but there is no id.

               

               

              jboss.web.deployment:war=/admin-console

              jboss.web.deployment:war=/invoker

              jboss.web.deployment:war=/ROOT

              jboss.web.deployment:war=/web-console

              jboss.web.deployment:war=/jmx-console

              not sure if we have to pass any additional option to get the id, also there is no StateString attribute for the war files.

               

               

               

              Jaikiran,
              there are couple of operations on Service Mbean like listDeployed and listDeployedAsString. When I invoke this operations I get nothing.
              [abc@test /opt/jboss/bin] twiddle.sh invoke "jboss.system:service=MainDeployer" listDeployedAsString
              <pre>[]</pre>
              [abc@test /opt/jboss/bin] twiddle.sh invoke "jboss.system:service=MainDeployer" listDeployed
              []

               

               

              jboss.web.deployment:war=/admin-console
              jboss.web.deployment:war=/invoker
              jboss.web.deployment:war=/ROOT
              jboss.web.deployment:war=/web-console
              jboss.web.deployment:war=/jmx-console

               

              Also when I check in the jmx-console I can see there are applications deployed and running