Prathiba,
If you specify noErrorHandler, the JMS endpoint in ServiceMix will just
receive your bean exception and will not acknowledge the message off the
queue. This will cause it to retry it forever. For more QoS, you can
use transactions on the JBI JMS endpoint (or use Spring transactions
with the Camel JMS endpoints).
It just doesn't make sense to first specify a dead letter queue (i.e. a
queue to send messages to when delivery fails) and afterwards specify
infinite redelivery (i.e. no message will ever be send to the dead
letter queue).
Gert
pratibhaG wrote:
Is this feature also available if I use camel in servicemix? That is if I use
servicemix-camel component and have configuration like this:
from(SERVICE_IN).errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(-1)).to(BEAN_IN);
will my message be redelivered infinitely if it gets error every time it
tries to redelive?
I tried this in servicemix 3.2.1 but it never tried to redeliver my message.
It has the same behaviour as of maximumRedeliveries(0).
Any idea?
Regards,
Pratibha