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


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