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

后端 未结 4 1066
小鲜肉
小鲜肉 2020-12-15 12:32

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

4条回答
  •  借酒劲吻你
    2020-12-15 13:17

    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.

提交回复
热议问题