3 Replies Latest reply on Aug 24, 2005 12:49 AM by Elias Ross

    wait between retries when MDB fails?

    Evyatar Kafkafy Newbie

      Hi all

      When MDB fails, the message is re-entered to the queue and another instance of the MDB will eventually take it out and process it again. The number of retries is 10 by default and can be configured by editing the MaxTimesRedelivered node in the jboss.xml file.

      My question is: is there a way to configure that JBoss will wait a few seconds before retrying?

      The reason is: returning the message to the queue usually causes it to be processed immediately (unless there are many other messages in the queue), and errors that are assumed to be momentary (like a database connection problem) have a higher probability to disappear if I wait a few seconds (or minutes).