Develop > Controller layer > Integrate with back-end systems and external applications > Outbound services > Create an outbound message


Create different outbound queues for different message types for WebSphere MQ

You can create different outbound queues for different message types for WebSphere MQ.


Procedure

  1. Create a JMS queue definition, for example, JMSOutboundQueueCustom, in the WebSphere Application Server Administration Console. See Create WebSphere MQ messaging provider queue destinations for more information..

  2. Open the Administration Console.

  3. Click Configuration > Message Types. The Message Type Configuration page is displayed. In the Parameters section of the outbound queue we will use for this message type, specify the JMS object name, for example, JMSOutboundQueueCustom.

  4. To set the queue destination in the custom code, 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.


+

Search Tips   |   Advanced Search