Date Created: Mon 14-Mar-2011

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/



WebSphere 8 monitored deployment

How to set up the new WebSphere 8 automatic deploy using a monitored directory

Log in to the Admin console and click "Global deployment Settings" from the Applications section of the Left-Hand-Side navigation menu.




The following screen will be loaded



Check the Monitor directory to automatically deploy applications.

Click apply and save the changes to persist the settings to configuration repository. You will have to restart the server for the settings to take effect.


We should now see a new folder




I am now going to drag and drop an EAR file and see what happens:


I copied a file called C:\temp\antbuild\dist\LogViewEAR.ear and pasted it in to: C:\IBM\WebSphere\AppServer\profiles\AppSrv01\monitoredDeployableApps\servers\server1

This was the result showing in the logs:


[19/12/10 23:42:40:740 GMT] 0000001c WatchService I CWLDD0007I: Event id 466935732-1. Start of processing. Event type: Added, File path: C:\IBM\WebSphere\AppServer\profiles\AppSrv01\monitoredDeployableApps\servers\server1\LogViewEAR.ear.
[19/12/10 23:42:40:826 GMT] 0000001c ModelMgr I WSVR0801I: Initializing all server configuration models
[19/12/10 23:42:42:354 GMT] 0000001c WorkSpaceMana A WKSP0500I: Workspace configuration consistency check is disabled.
[19/12/10 23:42:43:497 GMT] 0000001c AppManagement I CWLDD0028I: Event id 466935732-1. The target of the current operation is [WebSphere:cell=T60Windows7PNode01Cell,node=T60Windows7PNode01,server=server1].
[19/12/10 23:42:43:585 GMT] 0000001c AppManagement I CWLDD0014I: Event id 466935732-1. Installing application LogViewEAR...
[19/12/10 23:42:49:045 GMT] 0000001d webcontainer I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0239I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] was registered successfully.
[19/12/10 23:42:49:048 GMT] 0000001d webcontainer I com.ibm.ws.webcontainer.internal.WebContainer addExtensionFactory SRVE0240I: Extension Factory [class com.ibm.ws.soa.sca.web.extension.SCAWebExtensionFactory] has been associated with patterns [""].
[19/12/10 23:42:49:742 GMT] 0000001d WebSphereSCAS I Added Servlet mapping: /dojo
[19/12/10 23:42:49:745 GMT] 0000001d WebSphereSCAS I Added Servlet mapping: /dojo
[19/12/10 23:42:49:749 GMT] 0000001d WebSphereSCAS I Added Servlet mapping: /tuscany
[19/12/10 23:42:49:755 GMT] 0000001d WebSphereSCAS I Added Servlet mapping: /tuscany
[19/12/10 23:42:51:075 GMT] 0000001d InstallSchedu I ADMA5013I: Application LogViewEAR installed successfully.
[19/12/10 23:42:53:528 GMT] 0000001c AppBinaryProc I ADMA7021I: Distribution of application LogViewEAR completed successfully.
[19/12/10 23:42:53:550 GMT] 00000021 ThreadPool I WSVR0629I: The request buffer for thread pool "Non-deferrable Alarm" has reached its capacity.
[19/12/10 23:42:53:555 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/META-INF/application.xml.
[19/12/10 23:42:53:576 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/blas/LogViewEAR/bver/BASE/bla.xml.
[19/12/10 23:42:53:580 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/cus/LogViewEAR/cver/BASE/controlOpDefs.xml.
[19/12/10 23:42:53:584 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/LogViewWAR.war/WEB-INF/simplelog.properties.
[19/12/10 23:42:53:590 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/LogViewWAR.war/WEB-INF/web.xml.
[19/12/10 23:42:53:595 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deltas/LogViewEAR/delta-1292802167411.
[19/12/10 23:42:53:600 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/deployment.xml.
[19/12/10 23:42:53:671 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/LogViewWAR.war/META-INF/MANIFEST.MF.
[19/12/10 23:42:53:675 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/cus/LogViewEAR/cver/BASE/cu.xml.
[19/12/10 23:42:53:680 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/LogViewWAR.war/WEB-INF/simplelog-rollover.properties.
[19/12/10 23:42:53:684 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/META-INF/ibm-application-runtime.props.
[19/12/10 23:42:53:690 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/deployments/LogViewEAR/META-INF/MANIFEST.MF.
[19/12/10 23:42:53:698 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/cus/LogViewEAR/cver/BASE/cu-ref.xml.
[19/12/10 23:42:53:703 GMT] 0000001c FileRepositor A ADMR0015I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 created document cells/T60Windows7PNode01Cell/applications/LogViewEAR.ear/LogViewEAR.ear.
[19/12/10 23:42:53:706 GMT] 0000001c FileRepositor A ADMR0016I: User defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1 modified document cells/T60Windows7PNode01Cell/nodes/T60Windows7PNode01/serverindex.xml.
[19/12/10 23:42:54:065 GMT] 0000001c AppManagement I CWLDD0015I: Event id 466935732-1. Application LogViewEAR is installed successfully.
[19/12/10 23:42:54:069 GMT] 0000001c AppManagement I CWLDD0020I: Event id 466935732-1. Starting application LogViewEAR...
[19/12/10 23:42:54:167 GMT] 0000001c AdminHelper A ADMN1008I: An attempt is made to start the LogViewEAR application. (User ID = defaultWIMFileBasedRealm/server:T60Windows7PNode01Cell_T60Windows7PNode01_server1)
[19/12/10 23:42:54:422 GMT] 0000001c CompositionUn A WSVR0190I: Starting composition unit WebSphere:cuname=LogViewEAR in BLA WebSphere:blaname=LogViewEAR.
[19/12/10 23:42:54:571 GMT] 0000001c ApplicationMg A WSVR0200I: Starting application: LogViewEAR
[19/12/10 23:42:54:576 GMT] 0000001c ApplicationMg A WSVR0204I: Application: LogViewEAR Application build level: Unknown
[19/12/10 23:42:54:784 GMT] 0000001c webapp I com.ibm.ws.webcontainer.webapp.WebGroupImpl WebGroup SRVE0169I: Loading Web Module: LogView.
[19/12/10 23:42:55:030 GMT] 0000001c WASSessionCor I SessionContextRegistry getSessionContext SESN0176I: Will create a new session context for application key default_hostlogview
[19/12/10 23:42:55:292 GMT] 0000001c webcontainer I com.ibm.ws.webcontainer.VirtualHostImpl addWebApplication SRVE0250I: Web Module LogView has been bound to default_host[*:9080,*:80,*:9443,*:5060,*:5061,*:443].
[19/12/10 23:42:55:346 GMT] 0000001c ApplicationMg A WSVR0221I: Application started: LogViewEAR
[19/12/10 23:42:55:349 GMT] 0000001c CompositionUn A WSVR0191I: Composition unit WebSphere:cuname=LogViewEAR in BLA WebSphere:blaname=LogViewEAR started.
[19/12/10 23:42:55:355 GMT] 0000001c AppManagement I CWLDD0021I: Event id 466935732-1. Application LogViewEAR is started on: WebSphere:cell=T60Windows7PNode01Cell,node=T60Windows7PNode01,server=server1,status=success.
[19/12/10 23:42:55:995 GMT] 0000001c WatchService I CWLDD0008I: Event id 466935732-1. End of processing.

By logging into the Administrative Console I can see the new application has been deployed.




So far it looks like it works a treat.

======================================================================

Information from WebSphere Help

Monitor directory to automatically deploy applications. Specifies whether to enable monitored directory deployment.

You can use monitored directory deployment to install or update an enterprise application file on an application server or cluster, or to uninstall an application file that was previously installed using monitored directory deployment.

You can install or update an application file by dragging or copying an enterprise archive (EAR), web archive (WAR), Java archive (JAR), or Session Initiation Protocol (SIP) module (SAR) to a monitored directory. The application file must conform to the Java Platform, Enterprise Edition (Java EE) specification. To uninstall a deployed application file, remove it from the monitored directory.

You can also install, update, or uninstall an application file by dragging or copying an application properties file to a monitored directory. The properties file must specify the deployment actions to be performed.

By default, monitored directory deployment is disabled.

Monitored directory
Specifies the directory to use for monitored directory deployment. The default monitored directory is monitoredDeployableApps. Using this setting, you can specify a different default monitored directory.

For deployment by dragging or copying an enterprise application file to a monitored directory, the directory to which you add enterprise application files depends upon the product profile:

•For base (stand-alone) application servers, the default monitored directory is the monitoredDeployableApps/servers/server_name directory of the application server profile.

•For deployment managers, the default monitored directories are the monitoredDeployableApps/servers/server_name, monitoredDeployableApps/nodes/node_name/servers/server_name, and monitoredDeployableApps/clusters/cluster_name directories of the deployment manager profile.

For deployment using properties files, the monitored directory is a subdirectory named deploymentProperties of the directory specified by this setting; for example, monitoredDeployableApps/deploymentProperties.

To change the default monitored directory, specify a different directory path for this setting. List the entire value for the directory, including the environment variable. Monitor directory to automatically deploy applications must be enabled to change this setting.


Polling interval
Specifies the number of seconds that elapse before the product scans a monitored directory for new applications.

The product scans a monitored directory for new applications no more frequently than every 5 seconds, by default.

To change this setting, specify a value of 1 or greater. The product changes 0 (zero) or negative values to 5 when the server starts. Monitor directory to automatically deploy applications must be enabled to change this setting.

=============================================================

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many large-enterprise corporate companies across the world. Steve specialises in Java and Middleware.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • My Blog
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Categories

Other Categories