目次と検索結果のパーソナライズ化
スクリプトによる新規リソース環境エントリーの構成
スクリプトと wsadmin ツールを使用して、新規のリソース環境エントリーを構成することができます。
このタスクについて
以下のステップを実行して、新規リソース環境エントリーを構
成します。
プロシージャー
- 親 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)
- 以下のように、必須の属性を識別する。
Jacl を使用:
$AdminConfig required ResourceEnvEntry
Jython を使用:
print AdminConfig.required('ResourceEnvEntry')
出力例:
Attribute Type
name String
jndiName String
referenceable Referenceable@
- 以下のように、必須の属性をセットアップする。
Jacl を使用:
set name [list name REE1]
set jndiName [list jndiName myjndi]
set newref [$AdminConfig getid /Cell:mycell/Node:mynode/Referenceable:/]
set ref [list referenceable $newref]
set reeAttrs [list $name $jndiName $ref]
Jython を使用:
name = ['name', 'REE1']
jndiName = ['jndiName', 'myjndi']
newref = AdminConfig.getid('/Cell:mycell/Node:mynode/Referenceable:/')
ref = ['referenceable', newref]
reeAttrs = [name, jndiName, ref]
- 以下のように、リソース環境エントリーを作成する。
Jacl を使用:
$AdminConfig create ResourceEnvEntry $newrep $reeAttrs
Jython を使用:
print AdminConfig.create('ResourceEnvEntry', newrep, reeAttrs)
出力例:
REE1(cells/mycell/nodes/mynode|resources.xml#ResourceEnvEntry_1)
- 構成の変更を保管します。詳しくは、wsadmin ツールによる構成変更の保管
の項目を参照してください。
- ノードを同期します (Network Deployment 環境の場合のみ)。
詳しくは、wsadmin ツールによるノードの同期化
の項目を参照してください。
|
