How to automatically deploy an application in WebSphere

Home > Search > How-to
  by

  1. In the left panel of the WebSphere admin console, select Applications > Global deployment settings.
  2. Check Monitor directory to automatically deploy applications and select Apply.
  3. Select Save.
  4. Restart the Application Server or Deployment Manager.

 

After the Application Server or Deployment Manager is restarted, the monitoredDeployableApps directory on the Application Server or Deployment Manager will exist. If this was done on an application server, the monitoredDeployableApps will have one subdirectory.

  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/servers

If this was done on a Deployment Manager, there will be a subdirectory for clusters and servers.

  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/clusters
  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/servers

Subdirectories will need to manually be created under the clusters and servers directories. For example, you would do the following if you have server01, server02, and cluster01.

  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/clusters/cluster01
  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/servers/server01
  • ${USER_INSTALL_ROOT}/monitoredDeployableApps/servers/server02

Placing an EAR, WAR, JAR or SAR file in the subdirectory will automatically deploy the app to the server or cluster. The SystemOut.log can be checked for assurance that the WAR or EAR was successfully deployed. 

CWLDD0014I: Event id 115306418-1. Installing application your_app_name...
ADMA5016I: Installation of your_app_name started.
ADMA5013I: Application your_app_name installed successfully.

 

There will also be an attempt to start the application.

ADMN1008I: An attempt is made to start the your_app_name application.
CWLDD0021I: Application your_app_name is started on: WebSphere:cell=cell01,node=node01,server=server01,status=success.
CWLDD0021I: Application your_app_name is started on: WebSphere:cell=cell01,node=node02,server=server02,status=success.

 



Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments