Home

 

Use your own programs

 

Test your setup by sending some messages between the two queue managers. In the following example LONDON puts a message to the INVENTQ at NEWYORK and receives a reply on its queue LONDON_reply.

  1. Define a local queue called LONDON_reply

  2. Set the MQOPEN options to MQOO_OUTPUT

  3. Issue the MQOPEN call to open the queue INVENTQ

  4. Set the ReplyToQ name in the message descriptor to LONDON_reply

  5. Issue the MQPUT call to put the message

  6. Commit the message

On NEWYORK:

  1. Set the MQOPEN options to MQOO_BROWSE

  2. Issue the MQOPEN call to open the queue INVENTQ

  3. Issue the MQGET call to get the message from INVENTQ

  4. Retrieve the ReplyToQ name from the message descriptor

  5. Put the ReplyToQ name in the ObjectName field of the object descriptor

  6. Set the MQOPEN options to MQOO_OUTPUT

  7. Issue the MQOPEN call to open LONDON_reply at queue manager LONDON

  8. Issue the MQPUT call to put the message to LONDON_reply

On LONDON:

  1. Set the MQOPEN options to MQOO_BROWSE

  2. Issue the MQOPEN call to open the queue LONDON_reply

  3. Issue the MQGET call to get the message from LONDON_reply

 

Parent topic:

7. Verify and test the cluster


qc10570_


 

Home