You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: documentation/src/main/docs/jms/receiving-jms-messages.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -77,6 +77,24 @@ When the Reactive Messaging `Message` gets acknowledged, the associated
77
77
JMS Message is acknowledged. As JMS acknowledgement is blocking, this
78
78
acknowledgement is delegated to a worker thread.
79
79
80
+
## Failure Handling
81
+
82
+
If a message produced from a JMS message is *nacked*, a failure strategy is applied. The JMS connector supports 3 strategies:
83
+
84
+
-`fail` - (default) fail the application, no more messages will be processed. The failing message is not acknowledged and may be redelivered by the JMS broker. The application is marked as unhealthy (impacting liveness checks).
85
+
86
+
-`ignore` - the failure is logged, but the processing continues. The failing message is acknowledged and will not be redelivered.
87
+
88
+
-`dead-letter-queue` - the failing message is acknowledged and sent to a JMS *dead letter queue* destination. The processing continues with the next message.
89
+
90
+
The dead letter queue destination can be configured using the `dead-letter-queue.destination` attribute. If not specified, it defaults to `dead-letter-queue-$channel`.
91
+
Messages sent to the dead letter queue preserve the original message body and properties. In addition, the following properties are added:
92
+
93
+
-`dead_letter_exception_class_name` - the fully qualified class name of the exception
94
+
-`dead_letter_reason` - the exception message
95
+
-`dead_letter_cause_class_name` - the fully qualified class name of the root cause (if available)
96
+
-`dead_letter_cause` - the root cause exception message (if available)
0 commit comments