wsadmin ツールとスクリプトを使用して、新規の WebSphere トピックを構成できます。
以下のステップを実行して、新規 WebSphere トピックを構成します。
Jacl を使用:
set newjmsp [$AdminConfig getid /Cell:mycell/Node:mynode/JMSProvider:JMSP1/]
newjmsp = AdminConfig.getid('/Cell:mycell/Node:myNode/JMSProvider:JMSP1/') print newjmsp
JMSP1(cells/mycell/nodes/mynode|resources.xml#JMSProvider_1)
$AdminConfig required WASTopic
print AdminConfig.required('WASTopic')
Attribute Type name String jndiName String topic String
set name [list name WAST1] set jndi [list jndiName jms/WAST1] set topic [list topic "Put your topic here"] set wtAttrs [list $name $jndi $topic]
{name WAST1} {jndiName jms/WAST1} {topic {Put your topic here}}
name = ['name', 'WAST1'] jndi = ['jndiName', 'jms/WAST1'] topic = ['topic', "Put your topic here"] wtAttrs = [name, jndi, topic] print wtAttrs
[[name, WAST1], [jndiName, jms/WAST1], [topic, "Put your topic here"]]
$AdminConfig create WASTopic $newjmsp $wtAttrs
print AdminConfig.create('WASTopic', newjmsp, wtAttrs)
WAST1(cells/mycell/nodes/mynode|resources.xml#WASTopic_1)