WAS v8.5 > Deploy applications

Deploy applications to the Liberty profile

We can deploy web applications or OSGi applications to the Liberty profile. You deploy an application by either dropping the application into a previously-defined "dropins" directory, or by adding an application entry to the server configuration.

We can deploy applications as described in this topic, or as described in Add and running an application on the Liberty profile using WebSphere Studio.

This topic assumes that we have not disabled dynamic updates to the runtime configuration, as described in Liberty profile dynamic updates. By default, the "dropins" directory is automatically monitored. If we drop an application into this directory, the application is automatically deployed on the server. Similarly, if the application is deleted from the directory, the application is automatically removed from the server. The "dropins" directory can be used for applications that do not require additional configuration, such as security role mapping. We do not have to include the application entry or any relevant information in the server configuration. For applications that are not in the "dropins" directory, we specify the location using an application entry in the server configuration. The location can be on the file system or at a URL.

Your application can be packaged as an archive file or as a directory. For applications in the "dropins" directory, the file name and file extension are used by the application monitor to determine the type of application, and to generate the application name and the context-root for web applications. For example, if the archive file or directory is named snoop.war, the application monitor assumes the application is a web application, the application name is "snoop", and the context-root is also snoop. For configured applications, we specify the application type and name, and if the application is a web application, the application name is also used as the context-root.

For more information about the default directory structure and the properties that are associated with directories (for example server.config.dir), see Liberty profile: Directory locations and properties.

For all deployed applications, we can configure whether application monitoring is enabled and how often to check for updates to applications. For the "dropins" directory, we can also configure the name and location of the directory and choose whether to deploy the applications that are in the directory. See Liberty profile dynamic updates.


See also


Parent topic: The Liberty profile


Related


Liberty profile dynamic updates


Reference:

Liberty profile: Directory locations and properties
Liberty profile: Configuration elements in server.xml


|