One of the neat developer friendly features added in Web Server 7.0 Update 3 release is auto-deployment of web applications. This feature will allow developers to deploy a web application by simply copying a war file into the auto-deploy sub-directory of the server instance. If the instance is already running, then run the <instance-root>/https-<config>/bin/reconfig script to tell the server to pick up the auto-deployed web-app. Note that the web-app will get deployed into all the virtual servers within the configuration. To undeploy the web application, simply remove it from the auto-deploy directory and run reconfig again if the server is running.
In case you want the server instance to automatically deploy or undeploy web-application each time a war file is added or removed from the auto-deploy directory, configure dynamic-reload-interval property of the servlet container using the Administration GUI/CLI. The server will keep checking for added/removed web applications after every dynamic-reload-interval number of seconds. Lets try setting this property using the wadm CLI:
You can see auto-deployment in action in the following screen cast:
In case you want the server instance to automatically deploy or undeploy web-application each time a war file is added or removed from the auto-deploy directory, configure dynamic-reload-interval property of the servlet container using the Administration GUI/CLI. The server will keep checking for added/removed web applications after every dynamic-reload-interval number of seconds. Lets try setting this property using the wadm CLI:
|
wadm> set-servlet-container-prop --config <config-name> dynamic-reload-interval=30
CLI201 Command 'set-servlet-container-prop' ran successfully wadm> deploy-config <config-name> CLI201 Command 'deploy-config' ran successfully |
You can see auto-deployment in action in the following screen cast: