L.S.,
This route will consume message of your SERVICE_IN JMS queue and send
them to BEAN_IN. If something goes wrong (e.g. your bean throws an
Exception), it will retry the operation once again (until the maximum
number of deliveries has occurred). If things still go wrong then, the
message will be moved to the ERROR_IN queue.
Just make your bean throw an exception and enable debug logging to see
this in action. BTW, is this also the answer to your latest question on
the ServiceMix mailing list?
Gert
pratibhaG wrote:
Hi,
I am using camel with servicemix.
I have this code in my RoteBuilder.
errorHandler(deadLetterChannel(ERROR_IN).maximumRedeliveries(2));
from(SERVICE_IN).to(BEAN_IN);
where SERVICE_IN is jms consumer BEAN_IN is bean and ERROR_IN is another
queue. How this flow will woprk?