You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by mcrive <mc...@optasportsdata.com> on 2010/01/13 12:28:50 UTC

recipientList redelivery

hi I am using Camel 2.2,
is there a way to specify a different value of maximumRedeliveries for each
endpoint when using recipentList?


-- 
View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143430.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: recipientList redelivery

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 13, 2010 at 1:02 PM, mcrive <mc...@optasportsdata.com> wrote:
>
> I think there is a small in the documentation
>
> In Errors Handlers features it is listed "redeliverUntil"
> http://camel.apache.org/error-handler.html
> while the feature seems to be named "retryUntil"
> http://camel.apache.org/exception-clause.html
>

Well spotted. Yes its retryUntil. I will fix the wiki page.

>
> Claus Ibsen-2 wrote:
>>
>> No you should not. Use the searchbox on the Camel frontpage and type
>> in redeliverUntil and check the links. There should be some wiki docu
>> how to use it.
>>
>
> --
> View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143796.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: recipientList redelivery

Posted by mcrive <mc...@optasportsdata.com>.
I think there is a small in the documentation

In Errors Handlers features it is listed "redeliverUntil"
http://camel.apache.org/error-handler.html
while the feature seems to be named "retryUntil"
http://camel.apache.org/exception-clause.html


Claus Ibsen-2 wrote:
> 
> No you should not. Use the searchbox on the Camel frontpage and type
> in redeliverUntil and check the links. There should be some wiki docu
> how to use it.
> 

-- 
View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143796.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: recipientList redelivery

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 13, 2010 at 12:49 PM, mcrive <mc...@optasportsdata.com> wrote:
>
>
> Claus Ibsen-2 wrote:
>>
>> You can use redeliverUntil to determine whether or not redelivery should
>> occur.
>>
>> And you can get the failed endpoint as a property:
>> String failedEndpointUri =
>> exchange.getProperty(Exchange.FAILURE_ENDPOINT, String.class);
>>
>> Then in your redeliverUntil you can have different number of
>> redeliveries based on the endpoint.
>>
>> There is no DSL configuration that allows you to configure redelivery
>> policies per endpoint.
>> Which we in the future could implement if there is a demand for that.
>> But error handling is complex and adding that just makes it more
>> complex :)
>>
>
> to do this I'd need to specify a 'custom property' for each endpoint,
> I've tried doing that at URI level but runs in
> org.apache.camel.ResolveEndpointFailedException due to the wrong parameter
>

No you should not. Use the searchbox on the Camel frontpage and type
in redeliverUntil and check the links. There should be some wiki docu
how to use it.

> --
> View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143640.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Re: recipientList redelivery

Posted by mcrive <mc...@optasportsdata.com>.

Claus Ibsen-2 wrote:
> 
> You can use redeliverUntil to determine whether or not redelivery should
> occur.
> 
> And you can get the failed endpoint as a property:
> String failedEndpointUri =
> exchange.getProperty(Exchange.FAILURE_ENDPOINT, String.class);
> 
> Then in your redeliverUntil you can have different number of
> redeliveries based on the endpoint.
> 
> There is no DSL configuration that allows you to configure redelivery
> policies per endpoint.
> Which we in the future could implement if there is a demand for that.
> But error handling is complex and adding that just makes it more
> complex :)
> 

to do this I'd need to specify a 'custom property' for each endpoint,
I've tried doing that at URI level but runs in
org.apache.camel.ResolveEndpointFailedException due to the wrong parameter

-- 
View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143640.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: recipientList redelivery

Posted by Claus Ibsen <cl...@gmail.com>.
On Wed, Jan 13, 2010 at 12:28 PM, mcrive <mc...@optasportsdata.com> wrote:
>
> hi I am using Camel 2.2,
> is there a way to specify a different value of maximumRedeliveries for each
> endpoint when using recipentList?
>

You can use redeliverUntil to determine whether or not redelivery should occur.

And you can get the failed endpoint as a property:
String failedEndpointUri =
exchange.getProperty(Exchange.FAILURE_ENDPOINT, String.class);

Then in your redeliverUntil you can have different number of
redeliveries based on the endpoint.


There is no DSL configuration that allows you to configure redelivery
policies per endpoint.
Which we in the future could implement if there is a demand for that.
But error handling is complex and adding that just makes it more
complex :)



>
> --
> View this message in context: http://old.nabble.com/recipientList-redelivery-tp27143430p27143430.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>
>



-- 
Claus Ibsen
Apache Camel Committer

Author of Camel in Action: http://www.manning.com/ibsen/
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus