IBM Support

Control auto-start of applications in Liberty Profile

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.

[{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Deploy (for example: AAT or ANT or EAR\/WAR\/JAR)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF016","label":"Linux"},{"code":"PF014","label":"iOS"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"8.5.5.1;8.5.5","Edition":"Liberty","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
15 June 2018

UID

swg21667757