Running the JMS Postcard sample

 

Because of a defect in the JDK provided with WebSphere MQ, the JMS Postcard sample application is not always able to detect the name of the system on which it is running. This problem can result in queue managers created by the Postcard sample's default configuration wizard being named QM_ and the Postcard sample being unable to send messages between workstations.

If this problem occurs, we can resolve it by editing the /etc/hosts file on your system as follows:

  1. Find the loopback address entry. This entry typically starts with the IP address 127.0.0.1.

  2. Remove any reference to the name of your system from the loopback entry. Typically, the entry will now read 127.0.0.1 localhost.localdomain localhost.

    Other entries in the /etc/hosts file that reference the name of the system do not need to be changed.

  3. Save the file and retry the Postcard sample.

 

Parent topic:

Set up your system to run the JMS postcard


lq10575_