Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If the acknowledgement fails within this time, the client informs the MB sever that this message was rejected from the client. The message is then scheduled to be redelivered later by the server. If you want to limit the number of times the message broker attempts to deliver the message, you can set the maximumRedeliveryAttempts entry in the broker.xml file:

Code Block
languagehtml/xml
<!--Broker will drop the message after the configured number of delivery attempts for each message.-->
	    <maximumNumberOfMessageDeliveryAttempts>10<<maximumRedeliveryAttempts>10</maximumNumberOfMessageDeliveryAttempts>maximumRedeliveryAttempts>

Note that this is the total number of delivery attempts, not re-delivery attempts. After the maximum number of re-delivery attempts are breached, the message is sent to the Dead Letter Channel. This is useful when the client application does not acknowledge the message because an operation on the message failed.

...