3 Replies Latest reply on Nov 29, 2007 11:57 PM by jaikiran

    Can we deploy without restarting?

    thejavafreak

      Dear all,

      Is it possible to deploy apps to appserver without shutting it down? e.g through a web-console or something? if it is possible, how do we do this?

      I'm using JBoss 4.2.2.GA.

      thanks in advance

        • 1. Re: Can we deploy without restarting?
          nicdo77

          Well, you can redeploy an app by just updating the .ear file on your deploy directory (basically, where you put iit the first time)
          But i assume you want to do it from a remote machine?
          Nico.

          • 2. Re: Can we deploy without restarting?
            thejavafreak

            Yes Nico,

            I want to do it from remote machine. Well this is not a problem. But the issue is, if I copy-paste the ear to the deploy directory the apps is not restarted. So I assume I have to restart the server.

            • 3. Re: Can we deploy without restarting?
              jaikiran

               

              But the issue is, if I copy-paste the ear to the deploy directory the apps is not restarted


              By default, the server should have picked up the application and started the deployment. Have you done any changes to the jboss-service.xml file in the %JBOSS_HOME%/< serverName>/conf folder? Specifically look for the "Deployment Scanning" MBean in that file and make sure that the MBean or its "ScanEnabled" and "ScanPeriod" properties are not commented out.

              Is it possible to deploy apps to appserver without shutting it down? e.g through a web-console or something?


              The other way to do this is to use the jmx-console (http://localhost:8080/jmx-console). On the page that comes up, look for MainDeployer and click on that link. The next page will list down all the methods available. There are a couple of deploy() method which accept the file path to deploy the application.