wsadmin スクリプトを使用した新規 WAS40 接続プールの構成 (非推奨)
スクリプトを使用して、新規の WAS40 接続プールを構成します。
始める前に
このタスクを開始する前に、wsadmin ツールが稼働している必要があります。 詳しくは、『wsadmin ツールの開始』トピックを参照してください。
このタスクについて
以下のステップを実行して、新規 WAS40 接続プールを構成します。
手順
- 以下のように、親 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)
- 以下のように、必須の属性を取得します。
Jacl を使用:
$AdminConfig required WAS40ConnectionPool
- Jython を使用:
print AdminConfig.required('WAS40ConnectionPool')
出力例:Attribute Type minimumPoolSize Integer maximumPoolSize Integer connectionTimeout Integer idleTimeout Integer orphanTimeout Integer statementCacheSize Integer
- 以下のように、必須の属性をセットアップします。
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]]
- 以下のように、was40 接続プールを作成する。
Jacl を使用:
$AdminConfig create WAS40ConnectionPool $new40ds $40cpAttrs
- Jython を使用:
print AdminConfig.create('WAS40ConnectionPool', new40ds, 40cpAttrs)
出力例:(cells/mycell/nodes/mynode:resources.xml#WAS40ConnectionPool_1)
- 構成の変更を保存します。
- ノードを同期します (Network Deployment 環境の場合のみ)。
関連タスク:


http://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-nd-mp&topic=txml_newwas
ファイル名:txml_newwas.html