Thanks Quinn.
I would like to clarify again.

If I want to send other servers the messages that sending message was
success on each sending, and to set retry options on them as well, I have to
nest direct routes?

<route> 
    <from uri="direct://my-http"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="1" redeliveryDelay="1000"/> 
    </onException> 
    <to uri="http4://127.0.0.1:80/bar..."/>
    <setBody>
        <constant>Http Success</constant>
    </setBody>
    <to uri="direct:httpSuccess" />
</route>

<route> 
    <from uri="direct://httpSuccess"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="3" redeliveryDelay="3000"/> 
    </onException> 
    <to uri="http4://127.0.0.1:80/httpsuccess..."/>
</route>

<route> 
    <from uri="direct://my-sql"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="10" redeliveryDelay="10000"/> 
    </onException> 
    <to uri="sql:INSERT INTO BAZ_TBL (NAME) VALUES(:#${body})..."/>
    <setBody>
        <constant>SQL Success</constant>
    </setBody>
    <to uri="direct:sqlSuccess" />
</route>

<route> 
    <from uri="direct://sqlSuccess"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="4" redeliveryDelay="4000"/> 
    </onException> 
    <to uri="http4://127.0.0.1:80/sqlsuccess..."/>
</route>

<route> 
    <from uri="direct://my-activemq"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="25" redeliveryDelay="25000"/> 
    </onException> 
    <to uri="activemq:qux..."/>
    <setBody>
        <constant>ActiveMQ Success</constant>
    </setBody>
    <to uri="direct:activemqSuccess" />
</route>

<route> 
    <from uri="direct://activemqSuccess"/> 
    <onException> 
        <exception>java.lang.Exception</exception> 
        <redeliveryPolicy maximumRedeliveries="5" redeliveryDelay="5000"/> 
    </onException> 
    <to uri="http4://127.0.0.1:80/activemqsuccess..."/>
</route>

<route> 
    <from uri="servlet:///foo"/> 
    <multicast> 
        <to uri="direct://my-http"/> 
        <to uri="direct://my-sql"/> 
        <to uri="direct://my-activemq"/> 
    </multicast> 
</route>



--
View this message in context: 
http://camel.465427.n5.nabble.com/Redelivery-per-Endpoint-tp5777413p5777501.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to