Postcard: Exchanging messages between two queue managers

You can start two instances of the Postcard sample and send messages between them using two queue managers.

About this task

When you started the Postcard sample as described in Signing on, you specified a nickname to use for that Postcard, for example, Nick. If you have a second queue manager on this computer or on another computer, and both queue managers are in the same cluster or you have configured channels to communicate between the two queue managers, you can send a Postcard to another nickname on the second queue manager. To send a postcard to a second nickname, complete the following steps:

Procedure

  1. Start a second Postcard, either on the same computer as the one on which you started Nick's Postcard, or on another computer, depending on the location of the second queue manager.
  2. In the Sign-on dialog for the second Postcard, enter a second nickname, for example, Tim.
  3. On Nick's Postcard, type the following information:
    1. Complete the To field with a second nickname, for example, Tim.
    2. In the On field, type the name of the queue manager name on the computer where Tim's Postcard is.
      If you don't know this name, in Tim's Postcard, look beneath the Message box after On:. Alternatively, if both queue managers are in the default configuration cluster, you can just type in the short TCP/IP name of Tim's computer, and Postcard will build that into the queue manager name in the same way that the Default Configuration wizard did.

      To select a custom queue manager, click Advanced.

  4. In Nick's Postcard, type your message, then click Send.
  5. Look in Tim's Postcard to see the message arrive, and double-click the message to view it.
  6. Now try sending one from Tim's computer back to Nick. You can do this by selecting the message that arrived in Tim's list, and clicking Reply.