Example: Querying application state using wsadmin

The following examples queries for the presence of Application MBean to find out whether the application is running.

Using Jacl:

$AdminControl completeObjectName type=Application,name=myApplication,*

If myApplication is running, then there should be an MBean created for it. Otherwise, the command returns nothing. If myApplication is running, the following is the example output:

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




Searchable topic ID:   rxml_appstate
Last updated: Jun 21, 2007 4:12:58 PM CDT    WebSphere Application Server Express, Version 5.0.2
http://publib.boulder.ibm.com/infocenter/wasinfo/index.jsp?topic=/com.ibm.websphere.exp.doc/info/exp/ae/rxml_appstate.html

Library | Support | Terms of Use | Feedback