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

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

スクリプトによる新規 Referenceable の構成

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

始める前に

このタスクを開始する場合は、あらかじめ wsadmin ツールが稼働 している必要があります。 詳しくは、wsadmin スクリプト・クライアントの開始 の項目を参照してください。

このタスクについて

以下のステップを実行して、新規 referenceable を構成します。

プロシージャー

  1. 親 ID を識別して newrep 変数に割り当てる。
    • Jacl を使用:

      set newrep [$AdminConfig  getid  /Cell:mycell/Node:mynode/
      ResourceEnvironmentProvider:REP1/]
    • Jython を使用:
      newrep = AdminConfig.getid('/Cell:mycell/Node:mynode/
      ResourceEnvironmentProvider:REP1/')
      print newrep
    出力例:
    REP1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvironmentProvider_1)
  2. 以下のように、必須の属性を識別する。
    • Jacl を使用:

      $AdminConfig required Referenceable
    • Jython を使用:
      print AdminConfig.required('Referenceable')
    出力例:
    Attribute            Type
    factoryClassname   String
    classname       String
  3. 以下のように、必須の属性をセットアップする。
    • Jacl を使用:

      set fcn [list factoryClassname REP1]
      set cn [list classname NM1]
      set refAttrs [list $fcn $cn]
    • Jython を使用:
      fcn = ['factoryClassname', 'REP1']
      cn = ['classname', 'NM1']
      refAttrs = [fcn, cn]
      print refAttrs
    出力例:
    {factoryClassname {REP1}} {classname {NM1}}
  4. 以下のように、新規 Referenceable を作成する。
    • Jacl を使用:

      set newref [$AdminConfig create Referenceable  $newrep  $refAttrs]
    • Jython を使用:
      newref = AdminConfig.create('Referenceable',  newrep,  refAttrs)
      print newref
    出力例:
    (cells/mycell/nodes/mynode|resources.xml#Referenceable_1)
  5. 構成の変更を保管します。詳しくは、wsadmin ツールによる構成変更の保管 の項目を参照してください。



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

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

最終更新: Jan 21, 2008 5:05:53 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/txml_referenceable.html