+

Search Tips | Advanced Search

Put messages asynchronously using IBM MQ classes for Java

To put a message asynchronously, set MQPMO_ASYNC_RESPONSE.

You put messages onto queues or topics using the put() method of the MQDestination class. To put a message asynchronously, that is, allowing the operation to complete without waiting for a response from the queue manager, we can set MQPMO_ASYNC_RESPONSE in the options field of MQPutMessageOptions. To determine the success or failure of asynchronous puts, use the MQQueueManager.getAsyncStatus call.

Parent topic: Handling messages in IBM MQ classes for Java

Last updated: 2020-10-04