+

Search Tips   |   Advanced Search

Use application properties files to install, update, and delete enterprise application files

We can use application properties files to install enterprise application files on a server or cluster, update deployed applications or modules, or uninstall deployed applications or modules. An enterprise application file must conform to Java EE specifications.

Before we can install enterprise application files on an application server, you must assemble modules as needed. Also, configure the target application server. As part of configuring the server, determine whether the application files can be installed to the deployment targets.

Start the wsadmin scripting tool. To start wsadmin using the Jython language, run the wsadmin -lang Jython command from the bin directory of the deployment target profile.

Use an application properties file, we can install, update, or uninstall an enterprise application or module.

Run administrative commands using wsadmin to deploy an application.

files. We can specify properties that install, update,
Action Procedure
create (install)

  1. Specify properties that identify the application and deployment target.

  2. Run the applyConfigProperties command to install the application.
modify (update)

  1. Edit application properties in the properties file. To update an application file, specify in the Properties section:

    • Update=true

    • operationType=add, operationType=update or operationType=delete

    • contentType=file, contentType=moduleFile, contentType=partialapp, or contentType=app

  2. 2. Run the applyConfigProperties command to update the deployed application.
delete (uninstall)

  1. Remove properties that identify the deployment target from the properties file.

  2. Run the deleteConfigProperties command to uninstall the deployed application.
create Property Not applicable
delete Property Not applicable

Optionally, we can use interactive mode with the commands:

Instead of running wsadmins manually to apply an application properties file, we can add the properties file to a monitored directory. The product automatically runs wsadmins. See Installing enterprise application files by adding properties files to a monitored directory.

If we are installing a stand-alone WAR or a Session Initiation Protocol(SIP) archive (SAR), specify the context root of the WAR or SAR file. The context root is combined with the defined servlet mapping (from the WAR file) to compose the full URL that users type to access the servlet. For example, if the context root is /gettingstarted and the servlet mapping is MySession, then the URL is http://host:port/gettingstarted/MySession.

This topic describes how to complete the following procedures:


Results

We can use the properties file to configure and manage the application object and its properties.


What to do next

Save the changes to the configuration.


Subtopics


Related concepts

  • Installable enterprise module versions


    Related tasks

  • Assembling applications

    (dist)(zos) Install enterprise application files by adding properties files to a monitored directory

  • Properties file syntax
  • Preparing for application update settings
  • PropertiesBasedConfiguration (AdminTask)