You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Marco Crivellaro <mc...@optasportsdata.com> on 2011/07/19 11:38:59 UTC

how to try delivery again after a recipientlist timeout

Hi all!
I would like to ask you which would be the best way of attempting a
redelivery after a recipient list timeout.

I currently have a route which receives a message from JMS with a list of
recipients and through a processor it changes the payload of the message and
builds the recipientlist header. The exchange is then passed to a
recipientList with 1 minute timeout. After the recipientList I have an
aggreagation strategy which allow me to know which endpoint have been
served.
I would like to attempt again the delivery to the recipients which haven't
been served within the recipientlist timeout setting.

This is an overview of the current route:

from("jmsendpoint")
.process(processor)
.onException(Exception.class).handled(false)
.end()
.recipientList(header("recipientListHeader").tokenize(","))
    .parallelProcessing().timeout(60000)
    .executorService(customThreadPoolExecutor)
    .streaming()
.aggregationStrategy(new
RecipientAggregationStrategy()).to("direct:completed");




--
View this message in context: http://camel.465427.n5.nabble.com/how-to-try-delivery-again-after-a-recipientlist-timeout-tp4611730p4611730.html
Sent from the Camel - Users mailing list archive at Nabble.com.