You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sa_james <sa...@hotmail.com> on 2016/12/16 12:55:51 UTC

Restarting an Endpoint from an ErrorHandler

Does something like the following make sense?

onException(*ConnectionException.class*).*process( ...stop and restart
myendpoint here ...)

*from("myendpoint").to("log:test-exception")





--
View this message in context: http://camel.465427.n5.nabble.com/Restarting-an-Endpoint-from-an-ErrorHandler-tp5791563.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Restarting an Endpoint from an ErrorHandler

Posted by souciance <so...@gmail.com>.
You can use the controlbus to stop and start routes from another route so
in theory if you use the control bus then it should work.

On Fri, Dec 16, 2016 at 1:55 PM, sa_james [via Camel] <
ml-node+s465427n5791563h16@n5.nabble.com> wrote:

> Does something like the following make sense?
>
> onException(*ConnectionException.class*).
>
> *process( ...stop and restart myendpoint here ...) *
> from("myendpoint").to("log:test-exception")
>
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/Restarting-an-Endpoint-
> from-an-ErrorHandler-tp5791563.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428h31@n5.nabble.com
> To unsubscribe from Camel - Users, click here
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=465428&code=c291Y2lhbmNlLmVxZGFtLnJhc2h0aUBnbWFpbC5jb218NDY1NDI4fDE1MzI5MTE2NTY=>
> .
> NAML
> <http://camel.465427.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>




--
View this message in context: http://camel.465427.n5.nabble.com/Restarting-an-Endpoint-from-an-ErrorHandler-tp5791563p5791568.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Restarting an Endpoint from an ErrorHandler

Posted by Taariq Levack <ta...@gmail.com>.
Hi
Guess it depends on your case if restarting can fix the connection problem,
but try the control bus to stop/start.

https://camel.apache.org/controlbus.html

Cheers

On 16 Dec 2016 14:56, "sa_james" <sa...@hotmail.com> wrote:

> Does something like the following make sense?
>
> onException(*ConnectionException.class*).*process( ...stop and restart
> myendpoint here ...)
>
> *from("myendpoint").to("log:test-exception")
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.
> com/Restarting-an-Endpoint-from-an-ErrorHandler-tp5791563.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>