スクリプトによる新規プロトコルの構成
スクリプトおよび wsadmin ツールを使用して、新規プロトコルを構成することができます。
始める前に
このタスクについて
以下のステップを実行して、新規プロトコルを構成します。
手順
- 以下のように、親 ID を識別します。
Jacl を使用:
set newmp [$AdminConfig getid /Cell:mycell/Node:mynode/MailProvider:MP1/]- Jython を使用:
newmp = AdminConfig.create('MailProvider', node, mpAttrs) print newmp
出力例:MP1(cells/mycell/nodes/mynode|resources.xml#MailProvider_1) - 以下のように、必須の属性を取得します。
Jacl を使用:
$AdminConfig required ProtocolProvider- Jython を使用:
print AdminConfig.required('ProtocolProvider')
出力例:Attribute Type protocol String classname String - 以下のように、必須の属性をセットアップします。
Jacl を使用:
set protocol [list protocol "Put the protocol here"] set classname [list classname "Put the class name here"] set ppAttrs [list $protocol $classname]出力例:{protocol protocol1} {classname classname1}- Jython を使用:
protocol = ['protocol', "Put the protocol here"] classname = ['classname', "Put the class name here"] ppAttrs = [protocol, classname] print ppAttrs出力例:[[protocol, protocol1], [classname, classname1]]
- 以下のように、プロトコル・プロバイダーを作成する。
Jacl を使用:
$AdminConfig create ProtocolProvider $newmp $ppAttrs- Jython を使用:
print AdminConfig.create('ProtocolProvider', newmp, ppAttrs)
出力例:(cells/mycell/nodes/mynode|resources.xml#ProtocolProvider_4) - 構成の変更を保存します。
タスク・トピック
最終更新: last_datehttp://www14.software.ibm.com/webapp/wsbroker/redirect?version=cord&product=was-base-dist&topic=txml_protocol
ファイル名:txml_protocol.html