JMS Acknowledgement Service
1. Overview
The JMS Acknowledgement Service (JMS Acknowledgement in the Studio) tells the broker that the JMS message that a JMS listener received is done, so that the broker removes it from the queue. The message continues through the flow unchanged. The service is the counterpart of the JMS Rollback Service.
The service only has an effect on a message from a JMS listener on a queue with JMS Transaction Mode session_transacted or flow_transacted, and with Synchronized switched off. In every other case it does nothing, the flow continues and the agent log shows the warning Message or Session is null, cannot ack. Which mode needs it, where, and what happens to a message that is not acknowledged is described in Acknowledging messages and Redelivery and the dead letter queue in the JMS listener.
2. Where to put it
Put a JMS Acknowledgement on every path of the flow where the message is done: the end of the normal path when its producer does not acknowledge by itself, discard flows, and error flows that handle the failure. It is required in session_transacted mode and optional in flow_transacted mode, where it is also the way to acknowledge earlier than the final producer would, for example before a long last step.
|
Acknowledging means the broker forgets the message. If a step after the JMS Acknowledgement fails, the message is not delivered again. Place the service after the steps that must succeed. |
If the commit fails, because the session is closed or no longer active, the error is written to the agent log and the flow continues.