wsadmin スクリプトによるリソース環境エントリーのカスタム・プロパティーの構成
wsadmin スクリプトを使用して、リソース環境エントリーの新規のカスタム・プロパティーを構成できます。
始める前に
このタスクについて
以下のステップを実行して、リソース環境エントリーの新規カスタム・プロパティーを構成します。
手順
- 親 ID を識別し、それを newree 変数に割り当てる。
Jacl を使用:
set newree [$AdminConfig getid /Cell:mycell/Node:mynode/ResourceEnvEntry:REE1/]
Jython を使用:
newree = AdminConfig.getid('/Cell:mycell/Node:mynode/ResourceEnvEntry:REE1/') print newree
出力例:REE1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvEntry_1)
- 以下のように、J2EE カスタム・プロパティー・セットを作成する。
Jacl を使用:
set propSet [$AdminConfig showAttribute $newree propertySet]
Jython を使用:
propSet = AdminConfig.showAttribute(newree, 'propertySet') print propSet
出力例:(cells/mycell/nodes/mynode|resources.xml#J2EEResourcePropertySet_5)
- 以下のように、必須の属性を識別する。
Jacl を使用:
$AdminConfig required J2EEResourceProperty
Jython を使用:
print AdminConfig.required('J2EEResourceProperty')
出力例:Attribute Type name String
- 以下のように、必須の属性をセットアップします。
Jacl を使用:
set name [list name RP1] set rpAttrs [list $name]
Jython を使用:
name = ['name', 'RP1'] rpAttrs = [name]
- 以下のように、J2EE カスタム・プロパティーを作成する。
Jacl を使用:
$AdminConfig create J2EEResourceProperty $propSet $rpAttrs
Jython を使用:
print AdminConfig.create('J2EEResourceProperty', propSet, rpAttrs)
出力例:RPI(cells/mycell/nodes/mynode|resources.xml#J2EEResourceProperty_1)
- 構成の変更を保存します。 詳しくは、『wsadmin ツールによる構成変更の保存』トピックを参照してください。
- ノードを同期します (Network Deployment 環境の場合のみ)。 詳しくは、『wsadmin ツールによるノードの同期化』トピックを参照してください。
関連タスク:


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