Use the createWMQTopic command to create a JMS topic destination for the WebSphere® MQ messaging provider at a specific scope.
To run the command, use the AdminTask object of the wsadmin scripting client.
This command is valid only when it is used with WebSphere Application Server Version 7 and later application servers. Do not use it with earlier versions.
print AdminTask.help('WMQAdminCommands')
print AdminTask.help('command_name')
AdminConfig.save()
Use the createWMQTopic command to create a WebSphere MQ messaging provider topic type destination at a specific scope.
The scope of the WebSphere MQ messaging provider at which the WebSphere MQ messaging provider topic type destination is to be created.
APP is the default value.
The default value is APP .
The default value is APP.
The value of this parameter must be a positive integer or blank. See the WebSphere MQ messaging provider queue and topic advanced properties settings for more details.
The default value is 1208.
Leaving this field empty indicates that the default value must be used.
If it is set to true, the values of the -integerEncoding, -decimalEncoding and -floatingPointEncoding attributes are ignored.
If it is set to false, the encoding is specified by the -integerEncoding, -decimalEncoding and -floatingPointEncoding attributes.
Enter one of the following case-sensitive values: Normal, Reversed.
Normal is the default value.
Enter one of the following case-sensitive values: Normal, Reversed.
The default value is Normal.
Enter one of the following case-sensitive values: IEEENormal, IEEEReversed, z/OS
The default value is IEEENormal.
Enter one of the following case-sensitive values: true or false.
The default value is true.
Enter one of the following case-sensitive values: YES, NO or TDEF.
The default value is YES.
Enter one of the following case-sensitive values: YES, NO or TDEF.
The default value is YES.
When a value of deliverAll is specified, all read-ahead messages are delivered before closing the consumer.
When a value of deliverCurrent is specified, only in-progress messages are delivered before closing the consumer.
The default value is deliverCurrent.
Valid values are Topic or Char.
The default value is Topic.
The value of this parameter must be a valid queue name or left blank
The default value is SYSTEM.JMS.D.SUBSCRIBER.QUEUE.
The value of this parameter must be a valid queue name or left blank
The default value is SYSTEM.JMS.D.CC.SUBSCRIBER.QUEUE.
The value of this parameter must be a valid queue name or left blank
The default value is SYSTEM.BROKER.DEFAULT.STREAM.
The value of this parameter must be a valid queue manager name or left blank
There is no default value.
The value of this parameter must be V1 or V2.
The default value is V1.
wsadmin>AdminConfig.getid("/Node:9994GKCNode01") 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) wsadmin>AdminTask.createWMQTopic("9994GKCNode01(cells/9994GKCNode01Cell/ nodes/9994GKCNode01|node.xml#Node_1)", ["-name T1 -jndiName jms/topic/t1 -topicName woodland/creatures/badger"]) T1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# MQTopic_1098737234986)
wsadmin>$AdminConfig getid /Node:9994GKCNode01 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) wsadmin>$AdminTask createWMQTopic 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) {-name T1 -jndiName jms/topic/t1 -topicName woodland/creatures/badger} T1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# MQTopic_1098737234986)