The following procedure describes how to handle message replies.
To receive and handle a Control-M/EM API message:
Create a Java program that does the following:
Creates a connection with the Queue defined in the ReplyTo attribute of the outgoing message, or with the Reply Message Queue defined in the Account Management utility.
Sets up the correlation ID as the same ID set up for the outgoing message.
Tries to receive a message.
Analyzes the received message using either the XML generator classes or code that you have written.