Troubleshooting
Problem
How can we control automatic startup of applications deployed in Liberty ?
Resolving The Problem
By default applications deployed on liberty auto restart with the server JVM, you can stop this by setting the optional property autoStart to false on the application element in the server.xml (by default this is set to true).
Example :
<application name="testApp" type="war" location="testApp.war" autoStart="false"></application>
<application name="myapp" type="war" location="myapp.war"></application>
In the above example, testApp will not start at JVM startup but myapp will start as by default autoStart is set to true.
Note: The application in the "dropins" directory is automatically monitored. If you drop an application into this directory, the application is automatically deployed and started on the server.
If you deploy applications to "apps" directory or any other directory specified in the server.xml then the autoStart option can be used to indicate whether or not server should start the application automatically when server is started. For application deploy please review Deploy Application.
Was this topic helpful?
Document Information
Modified date:
15 June 2018
UID
swg21667757