JMS Rollback Service
1. Overview
The JMS Rollback Service (JMS Rollback in the Studio) rolls back the JMS message that a JMS listener received. The message stays on the queue and the broker delivers it again. The message continues through the flow unchanged. The service is the counterpart of the JMS Acknowledgement 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 nack. Which mode needs it, and what happens after a rollback (redelivery, the number of deliveries, the dead letter queue), is described in Acknowledging messages and Redelivery and the dead letter queue in the JMS listener.
2. Where to put it
Put a JMS Rollback in the error flow, and on any other path that must not complete the message. In flow_transacted mode a message that reaches the error handling of the flow is rolled back automatically, so you only need the service there for failures the flow does not treat as an error, for example a message that a filter sends to a discard flow.
-
Do not use a JMS Rollback for a business decision to discard a message, for example because a filter discards it as normal. The broker delivers a rolled back message again and again. Use a JMS Acknowledgement instead.
-
A rollback does not undo earlier steps. Steps that already sent or wrote something run again for the redelivered message.