How do I determine if an application is running using wsadmin Jython script?

blank picture blank · Nov 18, 2011 · Viewed 18.7k times · Source

I can get a list of instlled applications but how do I get the status using Jython?

Answer

Snehan Solomon picture Snehan Solomon · Nov 19, 2011

I dont think there is any direct method to get the application running status, You can get the object from the AdminControl using the following code

serverstatus = AdminControl.completeObjectName('type=Application,name='your_application_name',*')
print serverstatus

If serverstatus returns null, then the application is not running, if the application is running then the details of the applications would be printed.