Response Processing

The response to the Messaging API message issued to a target application may be either synchronous or asynchronous. This section provides more information about synchronous and asynchronous responses.

Synchronous

For synchronous requests, the Transaction Server expects a response to the message and sets the response required indicator in the JMS message. The jmsReplyTimeout parameter determines how long the Transaction Server waits for the response. If a response is not received, a timeout occurs.

When holdover processing for a business day starts, and before any messages are issued, the holdover indicator for the business day is set to in progress. Transaction Server sends each holdover message sequentially, waiting for a response before proceeding to the next message. When all of the messages are sent, and all responses are received, holdover completes. The business day holdover indicator is changed to complete if holdover processing was successful and error if it was not.

Asynchronous

For asynchronous requests, the Transaction Server does not wait for the response to each message.

When holdover processing for a business day starts, the holdover indicator for the business day is set to in progress. Transaction Server sends all of the holdover messages at once. The holdover request completes immediately, and the holdover indicator is placed in the response waiting state.

The holdover indicator remains in the response waiting state until the Transaction Server receives either a response with a non-zero return code, or all of the responses. If an error was received, the holdover indicator is changed to error. If no errors were received, the holdover indicator changes to the complete state after the last response arrives.

Note: The reply queue specified must be one that is configured in the Transaction Server listener profile. Specifying a reply queue that is not in the listener profile results in a business day with a holdover indicator that always remains in the response waiting state.