wsadmin スクリプトによる新規 URL プロバイダーの構成

スクリプトと wsadmin ツールを使用して、新規の URL プロバイダーを構成できます。

始める前に

このタスクを開始する前に、wsadmin ツールが稼働している必要があります。 詳しくは、『wsadmin スクリプト・クライアントの開始』を参照してください。

このタスクについて

以下のステップを実行して、新規 URL プロバイダーを構成します。

手順

  1. 親 ID を識別し、それを node 変数に割り当てます。
    • Jacl を使用:

      set node [$AdminConfig  getid  /Cell:mycell/Node:mynode/]
    • Jython を使用:

      node = AdminConfig.getid('/Cell:mycell/Node:mynode/')
      print node
    出力例:
    mynode(cells/mycell/nodes/mynode|node.xml#Node_1)
  2. 以下のように、必須の属性を識別する。
    • Jacl を使用:

      $AdminConfig required URLProvider
    • Jython を使用:

      print AdminConfig.required('URLProvider')
    出力例:
    Attribute            Type
    streamHandlerClassName   String
    protocol       String
    name      String
  3. 以下のように、必須の属性をセットアップします。
    • Jacl を使用:

      set name [list name URLP1]
      set shcn [list streamHandlerClassName "Put the stream handler classname here"]
      set protocol [list protocol "Put the protocol here"]
      set urlpAttrs [list $name $shcn $protocol]
      出力例:
      {name URLP1} {streamHandlerClassName {Put the stream handler classname here}} {protocol {Put the protocol here}}
    • Jython を使用:

      name = ['name', 'URLP1']
      shcn = ['streamHandlerClassName', "Put the stream handler classname here"]
      protocol = ['protocol', "Put the protocol here"]
      urlpAttrs = [name, shcn, protocol]
      print urlpAttrs
      出力例:
      [[name, URLP1], [streamHandlerClassName, "Put the stream handler classname here"],
      [protocol, "Put the protocol here"]]
  4. 以下のように、URL プロバイダーを作成する。
    • Jacl を使用:

      $AdminConfig create URLProvider $node $urlpAttrs
    • Jython を使用:

      print AdminConfig.create('URLProvider', node, urlpAttrs)
    出力例:
    URLP1(cells/mycell/nodes/mynode|resources.xml#URLProvider_1)
  5. 構成の変更を保存します。 詳しくは、『wsadmin ツールによる構成変更の保存』トピックを参照してください。
  6. ノードを同期します (Network Deployment 環境の場合のみ)。 詳しくは、『wsadmin ツールによるノードの同期化』トピックを参照してください。

トピックのタイプを示すアイコン タスク・トピック



タイム・スタンプ・アイコン 最終更新: last_date
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_urlprovider
ファイル名:txml_urlprovider.html