スクリプトを使用して、新規の MQ キュー接続ファクトリーを構成できます。
以下のステップを実行して、新規 MQ キュー接続ファクトリーを構成します。
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 MQQueueConnectionFactory
print AdminConfig.required('MQQueueConnectionFactory')
Attribute Type name String jndiName String
set name [list name MQQCF] set jndi [list jndiName jms/MQQCF] set mqqcfAttrs [list $name $jndi]
{name MQQCF} {jndiName jms/MQQCF}
name = ['name', 'MQQCF'] jndi = ['jndiName', 'jms/MQQCF'] mqqcfAttrs = [name, jndi] print mqqcfAttrs
[[name, MQQCF], [jndiName, jms/MQQCF]]
set template [lindex [$AdminConfig listTemplates MQQueueConnectionFactory] 0]
import java lineseparator = java.lang.System.getProperty('line.separator') template = AdminConfig.listTemplates('MQQueueConnectionFactory').split(lineseparator)[0] print template
Example non-XA WMQ QueueConnectionFactory(templates/ system:JMS-resource-provider-templates.xml #MQQueueConnectionFactory_3)
$AdminConfig createUsingTemplate MQQueueConnectionFactory $newjmsp $mqqcfAttrs $template
print AdminConfig.createUsingTemplate('MQQueueConnectionFactory', newjmsp, mqqcfAttrs, template)
MQQCF(cells/mycell/nodes/mynode:resources.xml#MQQueueConnectionFactory_1)