1 Reply Latest reply on Dec 18, 2006 11:53 AM by Peter Johnson

    deployment in jboss5

    Tivadar Szemethy Newbie

      Hello,

      Is there a way to deploy an app in jboss5 without restarting the server ?
      I'm so much used to hot deployment, I don't even know how to do without it ... :(

      thanks,

      Tiv

        • 1. Re: deployment in jboss5
          Peter Johnson Master

          Yes. Using the jmx-console, look up the jboss.system:service=MainDeployer mbean, and then use the deploy method that takes a string as a parameter, passing the full path name to the ear/war/whatever file. Note that the file as named must be visible to the server. You could also use twiddle to accomplish the same thing. Note that if you restart the server you will have to redeploy the application.

          Personally, I simply stop the server, copy my app to the deploy directory, and restart the server. Only takes a minute on my system, and avoids curious redeployment issues that tend to crop up every now and then. Scripting this in Ant is easy.