How to deploy a web application without restarting the jboss server

advertisements

i'm new to jboss server. I have jboss-4.2.3 server. I have many application in single server. I need to deploy my application without restart my jboss server. Is it possible? If so what are the options to do that?

Thanks in advance!!


Yes, you just have to move the application (ear or war) in the deploy directory, and JBoss will automatically redeploy it (providing you've the hot deployment scanner active). If a previous version of the application was already deployed in JBoss, it will be redeployed automatically as well.

But keep in mind that the hot deployment is not advisable in production environments, because depending on the application it may fail (for example, a common problem is that sometimes jsp aren't recompiled when the war is redeployed, so the previous jsp will still be sent to the user). If you still want/need to use hot deployment, to try to minimize this kind of problems, you can configure JBoss to delete automatically the old jsp compiled classes setting the property deleteWorkDirOnContextDestroy to true in the file deploy/jbossweb-tomcat55.sar/META-INF/jboss-service.xm‌​l, that will make a safer hotdeployment.