WebSphere Application Server - Express, Version 6.0.x   
             オペレーティング・システム: AIX , HP-UX, Linux, Solaris, Windows

             目次と検索結果のパーソナライズ化

スクリプトによる新規 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 ツールによる構成変更の保管 の項目を参照してください。



関連タスク
スクリプト管理のための AdminConfig オブジェクトの使用
関連資料
AdminConfig オブジェクトのコマンド
タスク・トピック    

ご利用条件 | フィードバック

最終更新: Jan 21, 2008 11:31:28 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.express.doc/info/exp/ae/txml_urlprovider.html