Querying the application state using wsadmin scripting
Use the wsadmin tool and scripting to determine if an application is running.
Procedure
Results
If myApplication is running, then an
MBean is created. Otherwise, the command returns nothing. If myApplication is
running, the output resembles the following:
WebSphere:cell=mycell,name=myApplication,mbeanIdentifier=cells/mycell/applications/myApplication.ear/
deployments/myApplication/deployment.xml#ApplicationDeployment_1,type=Application,node=mynode,Server=
dmgr,process=dmgr,J2EEName=myApplication