wsadmin AdminApp object for scripted administration
Use the AdminApp object to manage applications.
This object communicates with the runtime application management object in the product to make application inquires and changes, for example:
- Install and uninstall applications
- List applications
- Editing applications or modules
Because applications are part of configuration data, any changes that we make to an application are kept in the configuration session, similar to other configuration data. Be sure to save the application changes so that the data transfers from the configuration session to the master repository.
With the application already installed, the AdminApp object can update application metadata, map virtual hosts to web modules, and map servers to modules. We must perform any other changes, such as specifying a library for the application to use or setting session management configuration properties, using the AdminConfig object.
We can run the commands for the AdminApp object in local mode. If a server is running, IBM recommends not running the scripting client in local mode because any configuration changes that are made in local mode will not be reflected in the running server configuration and vice versa. If we save a conflicting configuration, we could corrupt the configuration.
In a deployment manager environment, configuration updates are available only if a scripting client is connected to a deployment manager. When connected to a node agent or a managed application server, we will not be able to update the configuration because the configuration for these server processes are copies of the master configuration which resides in the deployment manager. The copies are created on a node machine when a configuration synchronization occurs between the deployment manager and the node agent. Make configuration changes to the server processes by connecting a scripting client to a deployment manager. For this reason, to change a configuration, do not run a scripting client in local mode on a node machine. It is not a supported configuration.
To see a list of all available commands for the AdminApp object:
Tasks
- See the Commands for the AdminApp object topic.
- We can also use the Help command, for example:
Use Jacl:
$AdminApp helpUse Jython:
print AdminApp.help()
Subtopics
- List applications
We can list installed applications using the wsadmin tool and scripting.- Editing application configurations
Use the wsadmin tool to configure application settings.
Pattern matching Commands for the AdminApp object