Use the createWMQQueue command to create a queue type destination for the WebSphere® MQ messaging provider at a specific scope.
To run the command, use the AdminTask object of the wsadmin scripting client.
The wsadmin scripting client is run from Qshell. For more information, see the topic "Configure Qshell to run WebSphere Application Server scripts".
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 createWMQQueue command to create a WebSphere MQ messaging provider queue type destination at a specific scope.
The scope of the WebSphere MQ messaging provider at which the WebSphere MQ messaging provider queue type destination is to be created.
The default value is APP.
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 or Reversed.
The default value is Normal.
Enter one of the following case-sensitive values: Normal or 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 (equivalent to JMS or MQ targetClient, respectively)..
The default value is true (JMS targetClient).
Enter one of the following case-sensitive values: YES, NO or QDEF.
The default value is QDEF.
Enter one of the following case-sensitive values: YES, NO or QDEF.
The default value is QDEF.
Enter one of the following case-sensitive values: DELIVERALL, or DELIVERCURRENT.
The default value is DELIVERALL.
The following example creates a WebSphere MQ messaging provider queue type destination.
wsadmin>AdminTask.createWMQQueue("9994GKCNode01(cells/9994GKCNode01Cell/ nodes/9994GKCNode01|node.xml#Node_1)", ["-name queue1 -jndiName jms/queues/Q1 -queueName APP1.QUEUE1"])
queue1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# MQQueue_1098737234986)
wsadmin>$AdminTask createWMQQueue 9994GKCNode01(cells/9994GKCNode01Cell/nodes/9994GKCNode01|node.xml#Node_1) {-name queue1 -jndiName jms/queues/Q1 -queueName APP1.QUEUE1}
queue1(cells/9994GKCNode01Cell/nodes/9994GKCNode01|resources.xml# MQQueue_1098737234986)