5 Replies Latest reply on May 2, 2002 9:29 PM by sgturner

    Remote JBoss Startup

    casanova

      Hi,
      I have an ISP running JBoss/Tomcat on his webserver for me, and he knows little about it. I am using Tea templates (WDIG opensource product)for the presentation layer of my web sites rather than jsp, and this requires a server restart each time context classes for the templates are recompiled.
      I can shut down JBoss via the 8082 port no problem, but is there any way (RMI etc) to start it up remotely, so that I don't have to wait for my ISP to start it up again for me?

      I have tried writing RMI apps to run the batch file without success - I either get errors, or the call just finishes and exits without result. Calling Runtime.exec() and passing in the parameters in the jboss/tomcat startup batch files has some success, but has a fatal error part way through.

      I have included the RMI app it's startup batchfiles if anyone's interested.
      Looking forward to an answer.

        • 1. Re: Remote JBoss Startup
          davidjencks

          I don't know what Tea is, but if you can turn it into a jboss service, in jboss 3 you can probably undeploy and redeploy the whole thing while the server is running.

          • 2. Re: Remote JBoss Startup
            casanova

            The real issue at hand here is the ability for me to bounce the server remotely - I know this is possible for JBoss by redeploying applications, but is it possible to bounce Tomcat (stop/start) so that it picks up changes to webapps?
            I mentioned Tea (http://opensource.go.com / http://www.servlets.com) because it can't be hot deployed as it needs absolute path names in some properties files - if I could hot deploy it there wouldn't be a problem, but there is no work around at present.

            Any assistance with this would be much appreciated. Perhaps I've posted the question to the wrong area of the JBoss forum - I'm only a new beginner.

            • 3. Re: Remote JBoss Startup

              Hi,

              Not sure, but you should be able to invoke
              stop()
              then
              start()

              on the tomcat service on port 8082 to bounce it

              Regards,
              Adrian

              • 4. Re: Remote JBoss Startup
                casanova

                Ah, ok - sorry to be a pain, but how do you invoke a method on a port?

                • 5. Re: Remote JBoss Startup
                  sgturner

                  I would suggest you read up on the architecture of JBoss and JMX. Jboss is based on a JMX. Most everything in JBoss is an MBean managed by the MBeanServer. Thus you only need to browse http://<domain name>:8082, find the MBean listed on the resultant page that is the servlet container, and invoke its stop and start method.