如何检查应用程序是否部署在特定的托管服务器上?

发布于 2024-09-18 12:03:12 字数 176 浏览 4 评论 0原文

我使用以下 wlst 命令来检查应用程序之前是否已部署:

oldApplication = find(name=d['name'], type='AppDeployment')

但它没有显示应用程序已部署在特定服务器上。
如何找到应用程序部署在特定托管服务器上?

I use following wlst command in order to check if application was already deployed before:

oldApplication = find(name=d['name'], type='AppDeployment')

But it does not show that application was deployed on a specific server.
How can I find that application was deployed on a specific managed server?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

尴尬癌患者 2024-09-25 12:03:12

oldApplication 将是一个 AppDeployment MBean,它具有“targets”属性。
http://download.oracle.com/docs /cd/E17904_01/apirefs.1111/e13951/mbeans/AppDeploymentMBean.html

oldApplication.targets 将返回“TargetMBean”数组,该数组将是应用程序定位/部署的服务器列表。

oldApplication will be an AppDeployment MBean, which has the "targets" attribute.
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e13951/mbeans/AppDeploymentMBean.html

oldApplication.targets will return an array of "TargetMBean", which will be the list of servers on which the application is targeted/deployed.

挽袖吟 2024-09-25 12:03:12

它对我有用,可能对你有帮助:

print 'stopping and undeploying ...'

try:
    stopApplication('WebApplication')
    undeploy('WebApplication')
    print 'Redeploying...'

except Exception:
    print 'Deploy...'

deploy('WebApplication', '/home/saeed/project/test/WebApplication/dist/WebApplication.war')
startApplication('WebApplication2')

It works for me and might help you:

print 'stopping and undeploying ...'

try:
    stopApplication('WebApplication')
    undeploy('WebApplication')
    print 'Redeploying...'

except Exception:
    print 'Deploy...'

deploy('WebApplication', '/home/saeed/project/test/WebApplication/dist/WebApplication.war')
startApplication('WebApplication2')
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文