redilivery

Message Redelivery and DLQ Handling

北城余情 提交于 2020-02-28 20:40:17
Overview Messages are redelivered to a client when any of the following occurs: A transacted session is used and rollback() is called. A transacted session is closed before commit is called. A session is using CLIENT_ACKNOWLEDGE and Session.recover() is called. A client connection times out (perhaps the code being executed takes longer than the configured time-out period) The broker transmits the default delivery policy that he prefers to a client connection in his BrokerInfo command packet. But the client can override the policy settings by using the ActiveMQConnection.getRedeliveryPolicy()