Creating different outbound queues for different message types for IBM MQ
You can create different outbound queues for different message types for IBM MQ.
Procedure
- Create a JMS queue definition, for example, JMSOutboundQueueCustom, in the WebSphere Application Server Administration Console. See Creating IBM MQ messaging provider queue destinations for more information..
- Open the Administration Console.
- Click Change Message Transport Assignment is displayed if you are
changing an existing message type. If you are creating a new message type the New Message
Transport Assignment is displayed.
. The In the Parameters section of the outbound queue you will use for this message type, specify the JMS object name, for example, JMSOutboundQueueCustom.
- If you want to set the queue destination in your custom
code, you must use the following method of the SendMsgCmd command:
The parameter name for the outbound queue ispublic void setConfigData(String key, String value)
outQueue
.For example:msg.setConfigData("outQueue", "JMSOutboundQueueCustom");
See Configuration of transport services used for a message for more details on using the setConfigData method of SendMsgCmd.