camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jimbogaz <>
Subject Multicast, redelivery and error handlers
Date Wed, 12 Sep 2012 20:37:25 GMT
Hi all.

I think I'm missing something obvious, but I can't find anything here that
is similar to my problem, or any docs that tell me "it's obvious James you

I've put together a route that multicasts to three direct routes, which
simply return setBody type responses.  I have intentionally made one of them
take longer than the timeout on the multicast, with the intention that the
error handler retries the request.  It doesn't.  I have tried with both
having a TimeoutAwareAggregationStrategy with a setException (which I
thought would automatically invoke the error handler), and with just a plain

I'm on Camel 2.9.3, and below are my (sanitised to protect my client)
sections from beans.xml and my main method...  can anybody tell me where I'm
epic failing?

    public static void main(String... args) throws Exception {
    	ApplicationContext appContext = new
ClassPathXmlApplicationContext("beans.xml");"Initialised Application Context");
    	CamelContext camelContext = appContext.getBean("camel-context",
    	ProducerTemplate producerTemplate =
"<identity><name>James</name></identity>", callback);

  <camel:camelContext id="camel-context" errorHandlerRef="defaultEH"
        <camel:errorHandler id="defaultEH">
            <camel:redeliveryPolicy maximumRedeliveries="2"
retryAttemptedLogLevel="WARN" redeliveryDelay="200"/>
      <camel:from uri="direct:blah"/>
      <camel:multicast strategyRef="aggregatedData"
                   parallelProcessing="true" streaming="true" timeout="700">
      	<camel:to uri="direct:DOB"/>
      	<camel:to uri="direct:Address"/>
      	<camel:to uri="direct:Telephone"/>
    	<camel:from uri="direct:DOB"/>
    	<camel:from uri="direct:Address"/>
    	<camel:to uri="log:log"/>
    	<camel:from uri="direct:Telephone"/>

View this message in context:
Sent from the Camel - Users mailing list archive at

View raw message