【问题标题】:Create URL resource with the scope to node创建具有节点范围的 URL 资源
【发布时间】:2013-08-02 14:14:08
【问题描述】:

我正在使用以下 Jython 脚本在 WebSphere 7 上创建 URL 资源:

AdminResources.createURL(node, server, urlProvider, 'MyUrl', 'url/MyUrl', '/my/url')

问题是,new URL Resource的范围设置为node+server。在管理控制台中,我可以创建范围设置为单元、节点或节点+服务器的 URL。如何从 jython 脚本设置新 URL 资源的范围?

【问题讨论】:

    标签: websphere jython websphere-7 wsadmin


    【解决方案1】:

    使用 createURLAtScope , 举例
    AdminResources.createURLAtScope("/Cell:AMYLIN4Cell01/ServerCluster:c1/", "myURLProvider", "myURL", "url1/myURL", "myURLSpec", [['category', 'myCategory'], ['description', 'this is my url']])

    查看更多信息http://pic.dhe.ibm.com/infocenter/wasinfo/v8r0/topic/com.ibm.websphere.express.doc/info/exp/ae/rxml_7libmail.html#rxml_7libmail__scr27

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-09-08
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-09
      • 2014-03-22
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多