Results 1 to 2 of 2

Thread: poisoned pill / redelivery count

  1. #1
    Join Date
    Nov 2006
    Posts
    9

    Default poisoned pill / redelivery count

    I am wondering if it is possible on the level of

    DefaultMessageListenerContainer to redirect messages with certain redelivery count to a dead letter queue. I am currently using OpenMQ which does not allow to set redelivery count on messages; so, if I get a message which causes consumer to throw an exception and subsequently roll back the transaction I will get into no ending loop. Message is sent back to queue, then I read it from queue, roll back, send it back to queue... forever.

    Does Spring provide a capability to prevent poisoned pills from bringing the system down?

    thank you,

    Kirill

  2. #2

    Default

    No.... there is no default mechanism for doing so. The issue lies mostly with the different JMS implementations as different vendors have specific ways of dealing with the retryCount. If worse comes to worse, you may have to include a retry count in the actual body of the message.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •