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

  1. Set the MQSERIES_HOME environment variable: 
$ export MQSERIES_HOME=/opt/mqm
  2. Set the environment variable MQMGR. It is recommended that the queue manager conforms to the QM_eCMhostname naming convention. 
$ export MQMGR=QM_eCMhostname
  3. Copy the $MQ_HOME/bin/install/tibcoMQSeries.sh to $MQSERIES_HOME/bin.
  4. Copy the $MQ_HOME/bin/install/createQueuesMQ.txt and $MQ_HOME/bin/install/deleteQueuesMQ.txt to $MQSERIES_HOME/bin.
  5. Go to the/opt/mqm directory.
$ cd /opt/mqm
  6. Make the shell script executable. 
$ chmod +x tibcoMQSeries.sh
  7. 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  
  8. Create all queues needed to run TIBCO MDM.
    1. 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
      Note: You can provide a specific Channel Name or accept the default SCC_ECM.
    2. To create all queues and topics, enter: 
$./tibcoMQSeries.sh -createQueues
    3. To start all queues, and start the broker, channel, and listener, enter: $./tibcoMQSeries.sh -startQueues QMGR Port
      Note: If the port number is not specified, the listener is started on the default port number 1414.

      Ensure that the listener and channel manager are running and the listener control type is Queue Manager.

  9. 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.