WebSphere Application Server for z/OS, Version 6.0.x   
             オペレーティング・システム: z/OS

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

スクリプトによる新規 WAS40 接続プールの構成

スクリプトを使用して、新規の WAS40 接続プールを構成します。

始める前に

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

このタスクについて

以下のステップを実行して、新規 WAS40 接続プールを構成します。

プロシージャー

  1. 以下のように、親 ID を識別する。
    • Jacl を使用:

      set new40ds [$AdminConfig getid /Cell:mycell/Node:mynode/
      Server:server1/JDBCProvider:JDBC1/WAS40DataSource:was4DS1/]
    • Jython を使用:
      new40ds = AdminConfig.getid('/Cell:mycell/Node:mynode/
      Server:server1/JDBCProvider:JDBC1/WAS40DataSource:was4DS1/')
      print new40ds
    出力例:
    was4DS1(cells/mycell/nodes/mynodes:resources.xml$WAS40DataSource_1)
  2. 以下のように、必須の属性を取得する。
    • Jacl を使用:

      $AdminConfig required WAS40ConnectionPool
    • Jython を使用:
      print AdminConfig.required('WAS40ConnectionPool')
    出力例:
    Attribute            Type
    minimumPoolSize     Integer
    maximumPoolSize     Integer
    connectionTimeout   Integer
    idleTimeout        Integer
    orphanTimeout       Integer
    statementCacheSize  Integer
  3. 以下のように、必須の属性をセットアップする。
    • Jacl を使用:

      set mps [list minimumPoolSize 5]
      set minps [list minimumPoolSize 5]
      set maxps [list maximumPoolSize 30]
      set conn [list connectionTimeout 10]
      set idle [list idleTimeout 5]
      set orphan [list orphanTimeout 5]
      set scs [list statementCacheSize 5]
      set 40cpAttrs [list $minps $maxps $conn $idle $orphan $scs]
      出力例:
      {minimumPoolSize 5} {maximumPoolSize 30} {connectionTimeout 10} {idleTimeout 5} {orphanTimeout 5} {statementCacheSize 5}
    • Jython を使用:
      minps = ['minimumPoolSize', 5]
      maxps = ['maximumPoolSize', 30]
      conn = ['connectionTimeout', 10]
      idle = ['idleTimeout', 5]
      orphan = ['orphanTimeout', 5]
      scs = ['statementCacheSize', 5]
      cpAttrs = [minps, maxps, conn, idle, orphan, scs]
      print cpAttrs
      出力例:
      [[minimumPoolSize, 5], [maximumPoolSize, 30],
      [connectionTimeout, 10], [idleTimeout, 5],
      [orphanTimeout, 5], [statementCacheSize, 5]]
  4. 以下のように、was40 接続プールを作成する。
    • Jacl を使用:

      $AdminConfig create WAS40ConnectionPool $new40ds $40cpAttrs
      
    • Jython を使用:
      print AdminConfig.create('WAS40ConnectionPool', new40ds, 40cpAttrs)
    出力例:
    (cells/mycell/nodes/mynode:resources.xml#WAS40ConnectionPool_1)
  5. 構成の変更を保管します。詳しくは、wsadmin ツールによる構成変更の保管 の項目を参照してください。
  6. ノードを同期します (Network Deployment 環境の場合のみ)。 詳しくは、wsadmin ツールによるノードの同期化 の項目を参照してください。



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

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

最終更新: Jan 21, 2008 10:52:11 PM EST
http://publib.boulder.ibm.com/infocenter/wasinfo/v6r0/index.jsp?topic=/com.ibm.websphere.zseries.doc/info/zseries/ae/txml_newwas.html