webspherejythonwsadmin

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


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


Solution

  • 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.