如何确定使用wsadmin Jython脚本运行的应用程序? [英] How do I determine if an application is running using wsadmin Jython script?

查看:113
本文介绍了如何确定使用wsadmin Jython脚本运行的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以获取已安装应用程序的列表,但是如何使用Jython获取状态?

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

推荐答案

我认为没有任何直接方法可以获取应用程序的运行状态,您可以使用以下代码从AdminControl中获取对象

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

如果serverstatus返回null,则表明该应用程序未运行,如果该应用程序正在运行,则将打印该应用程序的详细信息.

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

这篇关于如何确定使用wsadmin Jython脚本运行的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆