Using application properties files to install, update, and delete enterprise application files
You can use application properties files to install enterprise application files on a server, update deployed applications or modules, or uninstall deployed applications or modules. An enterprise application file must conform to Java™ Platform, Enterprise Edition (Java EE) specifications.
Before you begin
Before you 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 your application files can be installed to your 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.
About this task
Using an application properties file, you can install, update, or uninstall an enterprise application or module.
Run administrative commands using wsadmin to deploy an application.
Action | Procedure |
---|---|
create (install) |
|
modify (update) |
|
delete (uninstall) |
|
create Property | Not applicable |
delete Property | Not applicable |
Optionally, you can use interactive mode with the commands:
AdminTask.command_name('-interactive')
Instead of running the wsadmin commands manually to apply an application properties file, you can add the properties file to a monitored directory. The product automatically runs the wsadmin commands. See Installing enterprise application files by adding properties files to a monitored directory.
If
you are installing a stand-alone web application archive (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:
- Install an enterprise application on a deployment target.
- Extract the properties for a deployed enterprise application.
- Update a single file in a deployed enterprise application.
- Remove a single file from a deployed enterprise application.
- Update a single module in a deployed enterprise application.
- Remove a single module from a deployed enterprise application.
- Replace, add, or delete multiple files of a deployed enterprise application.
- Replace the entire deployed enterprise application.
- Uninstall an application from a deployment target.
- Edit the deployment options of a deployed application.
- Deploy an application again.
Procedure
Results
You can use the properties file to configure and manage the application object and its properties.
What to do next
Save the changes to your configuration.