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:
Pretty nifty demo. Good to see this feature in Web Server. Can I likewise drop a PHP application like Drupal and expect it to auto-deploy?
Posted by 192.18.120.198 on July 01, 2008 at 01:10 PM PDT #
You can run any PHP application on Web Server 7.0 (by just copying the php application into the web server document root) as long as Web Server 7.0 is configured to run PHP. Refer to my blog about running Drupal on Web Server 7.0 - http://blogs.sun.com/amit/entry/running_drupal_on_sun_java
Posted by Amit on July 17, 2008 at 02:03 AM PDT #