Disable applications
You might decide to disable an application temporarily for maintenance or if, for example, we are deploying the product and the application is not yet ready for use.
Only perform this task to disable an application temporarily. To remove an application from the deployment permanently, perform the steps described in the topic, Remove applications.
- Do not disable applications used by all of the other applications, such as the News or Search applications.
- When you disable or remove an application, all references to that application are removed from the user interface.
- Open the WAS console of the IBM WebSphere Application Server hosting the application.
- Expand Applications > Application Types, and then select WebSphere enterprise applications.
- Click the name of the application to disable.
- Click Target specific application status.
- Select the check box next to the cluster name, and then click Disable Auto Start.
- Click Save to save the changes.
- Click Apply, and then click OK.
- Start the wsadmin client
cd app_server_root/profiles/Dmgr01/bin
./wsadmin.sh -lang jython
- Remove the link to the application from the navigation bar by editing the Connections configuration file.
- Access the Connections configuration file: execfile("connectionsConfig.py")
If we are prompted to specify a service to connect to, type 1 to select the first node in the list. Most commands can run on any node. If the command writes or reads information to or from a file by using a local file path, we must select the node where the file is stored. This information is not used by the wsadmin client when we are making configuration changes.
- Check out Connections configuration files:
LCConfigService.checkOutConfig("/tmp","cell_name")
where:
- /tmp is the temporary working directory to which configuration files are copied. The files are kept in this working directory while you edit them.
- With Windows, use a forward slash for the directory. For example: "/tmp".
- To determine: print AdminControl.getCell()
- To see a list of the properties and their current settings:
LCConfigService.showConfig()
- Enter the following commands:
LCConfigService.updateConfig("application_name.enabled", "false") LCConfigService.updateConfig("application_name.ssl.enabled", "false")where application_name is the name of the application that we are disabling.
- After making changes, check the configuration files back in and we must do so during the same wsadmin session in which you checked them out for the changes to take effect. See Applying common configuration property changes for information about how to save and apply the changes.
- Stop and then restart the WAS clusters.
Parent topic:
Customize the deployment
Related: