put

 

public void put(String qName, String qmName, MQMessage msg, 
                MQPutMessageOptions pmo, String altUserId) 
              throws MQException;

Puts a single message onto a (possibly unopened) queue. If a send exit has been specified, it processes the message before it is sent. See the description of MQPUT1 in WebSphere MQ Application Programming Reference for more information.

Parameters

  • qName - the name of the queue to which the message is put.

  • qmName - the name of the queue manager which holds the queue.

  • msg - the message to be sent.

  • pmo - the put message options to use.

  • altUserId - alternative user ID to use when putting the message.

Exceptions

  • MQException - if the WebSphere MQ put call fails.


uj15310_