【问题标题】:How to get the list of Applications that reference the library using weblogic command line reference?如何使用 weblogic 命令行参考获取引用该库的应用程序列表?
【发布时间】:2017-09-05 06:31:23
【问题描述】:

因为我需要在取消部署 weblogic 服务器中的库之前强制停止所有应用程序引用。

如何使用 weblogic 命令行参考在 weblogic 服务器的库设置中的“引用此库中的应用程序”选项卡中获取应用程序列表。

因此我可以停止这些应用程序,而不是停止所有应用程序。

【问题讨论】:

  • 实际上你需要在 serverRuntime().LibraryRuntimes 和 applicationRuntimes/{name}/libraryRuntimes/{name}/referencingRuntimes 之间做一个交叉引用

标签: deployment weblogic


【解决方案1】:

此信息可从 LibraryRuntimeMBean.ReferenceRuntimes 获得 看看这个documentation

【讨论】:

    【解决方案2】:

    在 WLST 中,您可以迭代库并获取应用程序名称。

    serverRuntime()
    
    listLibraries=cmo.getLibraryRuntimes()
    
    for library in listLibraries :
       for referencingRuntime in library.getReferencingRuntimes() :
          print referencingRuntime.getName()
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-04-08
      • 2021-07-16
      • 1970-01-01
      • 2011-06-04
      • 2011-02-24
      • 2016-12-12
      • 1970-01-01
      相关资源
      最近更新 更多