How to send a message to another queue manager
This section describes the simplest way to send a message between queue managers, including prerequisites and authorizations required. Other methods can also be used to send messages to a remote queue manager.
Before you send a message from one queue manager to another, we need to do the following steps:
- Check that your chosen communication protocol is available.
- Start the queue managers.
- Start the channel initiators.
- Start the listeners.
You also need to have the correct IBM MQ security authorization to create the objects required.
To send messages from one queue manager to another:- Define the following objects on the source queue manager:
- Sender channel
- Remote queue definition
- Initiation queue ( required on z/OS, otherwise optional)
- Transmission queue
- Dead-letter queue
- Define the following objects on the target queue manager:
- Receiver channel
- Target queue
- Dead-letter queue
We can use several different methods to define these objects, depending on the IBM MQ platform:
- On all platforms, we can use the IBM MQ script commands (MQSC) described in The MQSC commands the programmable command format (PCF) commands described in Automating administration tasks, or the IBM MQ Explorer.
- On z/OS, we can also use the Operation and Control panels described in Administer IBM MQ for z/OS .
- On IBM i, we can also use the panel interface.
See the following subtopics for more information on creating the components for sending messages to another queue manager:
- Defining the channels
To send messages from one queue manager to another, we must define two channels. We must define one channel on the source queue manager and one channel on the target queue manager. - Defining the queues
To send messages from one queue manager to another, we must define up to six queues. We must define up to four queues on the source queue manager, and up to two queues on the target queue manager. - Starting the channel
When you put messages on the remote queue defined at the source queue manager, they are stored on the transmission queue until the channel is started. When the channel has been started, the messages are delivered to the target queue on the remote queue manager.
Parent topic: Introduction to distributed queue management
Related concepts
- IBM MQ distributed queuing techniques
- Introduction to distributed queue management
- Triggering channels
- Safety of messages
- Set up communications with other queue managers
Related tasks
- Create queue managers on Multiplatforms
- Monitor and control channels on UNIX, Linux, and Windows
- Monitor and control channels on IBM i
- Configure connections between the server and client
- Configure a queue manager cluster