You can create different outbound queues for different
message types for WebSphere MQ.
Procedure
- Create a JMS queue definition, for example, JMSOutboundQueueCustom,
in the WebSphere Application Server Administration Console. See Creating
WebSphere MQ messaging provider queue destinations for more
information..
- Open the Administration Console.
- Click . The 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.
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:
public void setConfigData(String key, String value)
The parameter name for the outbound queue is
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.