JMS Acknowledge
In this article
Overview
This Snap is used to acknowledge the Java Message Service (JMS) messages read by a JMS consumer used in the upstream Snap. The JMS Consumer Snap should have the Acknowledgment mode set to CLIENT_ACKNOWLEDGE and Processing mode set to Synchronous.
The JMS Acknowledge Snap must be used together with the JMS Consumer Snap within the same Pipeline. It is not supported in parent-child Pipeline configurations.
Acknowledgment Modes:
Client Acknowledge: When a message is read, the client acknowledges the message.
Auto Acknowledge: The messages are acknowledged automatically (by user) after the message is read.
Learn more about Message Acknowledge Modes.
Snap Type
Read
Support for Ultra Pipelines
Works in Ultra Tasks.
Snap Views
Type | Format | Number of Views | Examples of Upstream and Downstream Snaps | Description |
|---|---|---|---|---|
Input | Document | Min:1 |
| This Snap optionally accepts the JMS MessageID of the JMS message consumed by JMS Consumer Snap upstream. |
Output | Document | Min:0 |
| This Snap writes the JMS MessageID received to output view if present. |
Error | Error handling is a generic way to handle errors without losing data or failing the Snap execution. You can handle the errors that the Snap might encounter while running the Pipeline by choosing one of the following options from the When errors occur list under the Views tab. The available options are:
Learn more about Error handling in Pipelines. | |||
Snap Settings
Field | Description |
|
|---|---|---|
Label
| Specify a unique name for the Snap. Default Value: JMS Acknowledge | |
Recover message
| Select this option to explicitly place a message back in the JMS queue to recover messages. Default Value: Deselected If the Snap fails to read the JMS messages for processing, you can recover those messages by selecting the Recover message checkbox so that the Snap can read the messages additional times for further processing. | |
Snap Execution
| Select one of the three modes in which the Snap executes. Available options are:
Default Value: Validate & Execute | |
Example
A Pipeline for JMS Acknowledge may look something like this:
Configure a Mapper Snap to join upstream Snaps to JMS Acknowledge:
The sample output of the JMS Acknowledge Snap may look like this: