The new Jboss 7 server is blazing fast starting up and shutting down. To perform hot deploy or doing development on exploded war, there are setting in the configuration folder that needs changing.
For standalone deployment, go to standalone/configuration directory and open standalone.xml. Look for the line below.
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
<deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" deployment-timeout="60"/>
</subsystem>
Add this param to enable hot deploy auto-deploy-exploded="true"
Changes are as below:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
<deployment-scanner name="default" path="deployments" scan-enabled="true" scan-interval="5000" relative-to="jboss.server.base.dir" auto-deploy-exploded="true" deployment-timeout="60"/>
</subsystem>
Hello Mark
ReplyDeleteThanks for sharing
i have a question. it is normal that after changing a class (spring mvc controller) after the hot deploying the jboss restarts?
thanks a lot.
Julio
Yes it should restart if the setting above is done.
ReplyDelete