This example describes the process that could be followed for an operation on the server side that sends a message to a partner MQManager and waits for the response.
Note This is only an example of using an MQ Connector from an application, and only some of the methods of the MQ Connector public API are represented.
1 If the operation runs with a local MQ server, use the mq package:
import com.ibm.mq.*;
2 Instantiate an MQMessage for the received message:
MQMessage retrievedMessage = new MQMessage();
3 Get the service from the context:
MQConnectionService service = (MQConnectionService) getService("conversation");
4 Establish the connection with MQManager. Open the queues: