如何检查应用程序是否部署在特定的托管服务器上?
我使用以下 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
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.
它对我有用,可能对你有帮助:
It works for me and might help you: