Thanks for visiting the site !!! Visit below intrested Ads to support us if you like the site .Sharing is caring .keep distance and keep safe . Happy Learning ... 😀

MQ High Availability sample programs

MQ 9.2 Comes with set of sample programs that are used for testing MQ high availability purpose . Those are amqsghacamqsphac, and amqsmhac and these have reconnect-able client logic .

Messages are placed on the queue SOURCE by amqsphac, transferred to TARGET by amqsmhac, and retrieved from TARGET by amqsghac

The amqsghacamqsphac, and amqsmhac programs are started from the command line, and can be used in combination to demonstrate reconnection after the failure of one instance of a multi-instance queue manager.

amqsphac used to put the message on to a QUUEE in QMGR group

amqsphac used to put the message on to a QUUEE in QMGR group

amqsmhac is used to read message from one source queue and put it in a destination queue on a QMGR group .

amqsphac queueName [qMgrName]

  • amqsphac is a IBM® WebSphere® MQ MQI client application. It puts a sequence of messages to a queue with a two second delay between each message and displays events sent to its event handler.
  • No sync point is used to put messages to the queue.
  • Reconnection can be made to any queue manager in the same queue manager group.

MQ_INSTALLATION_PATH/samp/bin/amqsphac Q1 *ANY_QM

amqsghac queueName [qMgrName]

  • amqsghac is a IBM WebSphere MQ MQI client application. It gets messages from a queue and displays events sent to its event handler.
  • No sync point is used to get messages from the queue.
  • Reconnection can be made to any queue manager in the same queue manager group.

MQ_INSTALLATION_PATH/samp/bin/amqsghac Q1 *ANY_QM

amqsmhac -s sourceQueueName -t targetQueueName [-m qMgrName] [-w waitInterval]

  • amqsmhac is a IBM WebSphere MQ MQI client application. It copies messages from one queue to another with a default wait interval of 15 minutes after the last message that is received before the program finishes.
  • The messages are copied within sync point.
  • Reconnection can be made only to the same queue manager.

These are sample programs like amqsput amqsget amqsputc and amqsgetc …etc

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *