Creating WebSphere MQ Queues and Manager
A shell script for creating WebSphere MQ queues - TibcoMqseries.sh- is included with the TIBCO MDM build JAR file. This script is located in the $MQ_HOME/bin/install directory.
Procedure
- Set the MQSERIES_HOME environment variable: $ export MQSERIES_HOME=/opt/mqm
- Set the environment variable MQMGR. It is recommended that the queue manager conforms to the QM_eCMhostname naming convention. $ export MQMGR=QM_eCMhostname
- Copy the $MQ_HOME/bin/install/tibcoMQSeries.sh to $MQSERIES_HOME/bin.
- Copy the $MQ_HOME/bin/install/createQueuesMQ.txt and $MQ_HOME/bin/install/deleteQueuesMQ.txt to $MQSERIES_HOME/bin.
- Go to the/opt/mqm directory. $ cd /opt/mqm
- Make the shell script executable. $ chmod +x tibcoMQSeries.sh
-
To view your options, run the
tibcoMQSeries script file.
$ ./tibcoMQSeries.sh
Usage is as follows:
–createQueue: Creates a single queue -createQueues: Create All Queues -createQueueMgr: Create Queue Manager -deleteQueues: Delete Queues -deleteQueueMgr: Delete Queue Manager -printDetails: Print Queue Details -printSpecDetails: Print Specific values of All Queues -setDefaultQueueMgr: Set Default Queue Manager -startQueues <QMGR Port>: Start All Queues : QMGR Port is Optional : Default port 1414 is used if not specified -startQueueMgr: Start Queue Manager -stopQueues: Stop All Queues -stopQueueMgr: Stop Queue Manager
-
Create all queues needed to run TIBCO MDM.
- To create a queue manager with the name defined by the MQMGR environment variable, enter the following command. This command also starts the Queue Manager. $./tibcoMQSeries.sh -createQueueMgr
- To create all queues and topics, enter: $./tibcoMQSeries.sh -createQueues
- To start all queues, and start the broker, channel, and listener, enter: $./tibcoMQSeries.sh -startQueues QMGR Port
-
Run the following script to create queues required while using JMS:
runmqsc MQMGR < ..\Java\bin\MQJMS_PSQ.mqsc
These queues are internally used by MQ series.
Copyright © Cloud Software Group, Inc. All rights reserved.