You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by exiart <ar...@gmail.com> on 2014/07/26 17:01:19 UTC

HTTP re-sending

Hello! 
Prompt how to make a route for sending data via http component so that 
1) if there was an error sending (for example
org.apache.http.conn.HttpHostConnectException: Connection timed out) then
run my process and then repeat sending
2) if the answer is not like (for example HTTP_CODE != 200) then run my
process and then repeat sending

Thanks in advance, 
Artem



--
View this message in context: http://camel.465427.n5.nabble.com/HTTP-re-sending-tp5754474.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP re-sending

Posted by Claus Ibsen <cl...@gmail.com>.
Hi

See about onRedelivery
http://camel.apache.org/exception-clause.html

On Mon, Jul 28, 2014 at 8:07 AM, exiart <ar...@gmail.com> wrote:
> Thank you.
> I saw onException DSL, I found out how to resend (maximumRedeliveries = -1),
> but I have not found as previously perform any action. But i not found How
> to perform custom actions before re-send.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/HTTP-re-sending-tp5754474p5754484.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Re: HTTP re-sending

Posted by exiart <ar...@gmail.com>.
Thank you.
I saw onException DSL, I found out how to resend (maximumRedeliveries = -1),
but I have not found as previously perform any action. But i not found How
to perform custom actions before re-send.



--
View this message in context: http://camel.465427.n5.nabble.com/HTTP-re-sending-tp5754474p5754484.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: HTTP re-sending

Posted by "Willem.Jiang" <wi...@gmail.com>.
Hi,

You can take a look at the onException DSL[1]. You can redirect the exchange
to a resending route if you want to resend message.

[1]http://camel.apache.org/exception-clause.html



--
View this message in context: http://camel.465427.n5.nabble.com/HTTP-re-sending-tp5754474p5754482.html
Sent from the Camel - Users mailing list archive at Nabble.com.