2 Replies Latest reply on Sep 2, 2009 11:54 AM by griffitm

    Can I restart an APP using JMX console?

    griffitm

      Hi all,

      How can I restart an application in the JBoss container (a war file app) that is not responding without restarting the entire AS? I think there must be a JMX bean to do this, but I cannot find it.

      Any reply would be appreciated.

      Best Regards,
      MG

        • 1. Re: Can I restart an APP using JMX console?
          peterj

          Actually, the best way might be to "touch" the war file, or the web.xml file if you are using exploded deployment.

          If I recall correctly, the mbean that controls the deployment of the war, if you call the stop() operation then the app gets undeployed, meaning the war is removed form the deploy directory. So you have to copy the war back into that directory. (It has been a while since I tried this so my memory of the exact series of event might not be accurate.) But if you want to try it, run the jmx console and look for mbeans that contain the war file name (but not any of the servlet or jsp names). One of those mbeans will have the lifecycle methods (start/stop/etc).

          • 2. Re: Can I restart an APP using JMX console?
            griffitm

            Thanks! I actually found the answer in the wiki:

            http://www.jboss.org/community/wiki/RedeployFromTheJMXConsole