You could try to use the exchange property ${property.CamelFailureEndpoint}
and ${property.CamelFailureRouteId} to determine which route and endpoint
failed.

On Tue, Mar 21, 2017 at 4:40 PM, catequil [via Camel] <
ml-node+s465427n5795836...@n5.nabble.com> wrote:

> I have a route similar to the following:
>
> from("direct:myFrom")
>     .onException(ExchangeTimedOutException.class)
>     .handled(true)
>     .log(LoggingLevel.ERROR, "TimeOut Exception for Batch Job")
>     .process(new TimeOutErrorProcessor())
>     .end()
>
>     .onCompletion()
>     .process(new JobOnCompletionProcessor()) //setup job.end.dateTime and 
> job.duration.minutes
>     .log("End ${exchangeProperty[jobName]} - 
> ${exchangeProperty[job.end.dateTime]}")
>     .log("End Total time: ${exchangeProperty[job.duration.minutes]} minutes.")
>     .end()
>
>     .process(new JobOnStartProcessor()) //setup job.start.dateTime
>     .log("Begin ${exchangeProperty[jobName]} - 
> ${exchangeProperty[job.start.dateTime]}")
>     .bean(iJobService, "fetchItems")
>     .split().method("jobSplitter").parallelProcessing(true)
>     .to("seda:processItemsJob");
>
> from("seda:processItemsJob?concurrentConsumers=10")
>     .process(new ItemsPreProcessor(env))
>     .bean(iAuditService, "auditExternalRequestCall")
>     .to(IEndPoints.URI_REST_ITEM_ENDPOINT)
>     .unmarshal().json(JsonLibrary.Jackson, ItemResponse.class)
>     .bean(iAuditService, "auditExternalResponseCall")
>     .process(new ItemPostProcessor())
>     .bean(iDAOService, "saveItem");
>
>
>
> Everything once in a while I get the ExchangeTimedOutException, but I do
> not know from which route segment the ExchangeTimedOutException is
> happening.  Does anyone know how to determine where the timeout is actually
> occurring?
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
> http://camel.465427.n5.nabble.com/ExchangeTimedOutException-tp5795836.html
> To start a new topic under Camel - Users, email
> ml-node+s465427n465428...@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/ExchangeTimedOutException-tp5795836p5795837.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to