Example: Querying application state using wsadmin

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

$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