To disable the Enterprise Application from starting when
an Application Server is started in WebSphere Application Server version
5.0 releases.
Note, you cannot disable a system application in version 6.0
(adminconsole, filetransfer, etc).
Follow these steps on the Administrative Console to accomplish
this:
- Expand Application and choose Enterprise Applications.
- Select an Enterprise Application you do not want to start during
startup.
- In the Additional Properties section choose Target
Mapping.
- Select the Application Server you do not want to start during startup.
- De-select the Enabled box.
- Click OK, then save.
Here is an example using wsadmin to disable the sample application
enterprise application from starting:
- # ./wsadmin.sh -conntype NONE
- wsadmin>set a [$AdminConfig getid
/Deployment:sampleapp/]
adminconsole(cells/ibmNetwork/applications/sampleapp.ear/deployments/sampleapp:deployment.xml#Deployment_1)
- wsadmin>set b [$AdminConfig showAttribute $a
deployedObject]
(cells/ibmNetwork/applications/sampleapp.ear/deployments/sampleapp:deployment.xml#ApplicationDeployment_1)
- wsadmin>set c [lindex [$AdminConfig showAttribute $b
targetMappings] 0]
(cells/ibmNetwork/applications/sampleapp.ear/deployments/sampleapp:deployment.xml#DeploymentTargetMapping_1)
- wsadmin>$AdminConfig modify $c {{enable false}}
- wsadmin>$AdminConfig save
If you have problems, call IBM support at 800-IBM-SERV. |