Re: Camel 3.1.0: error handling changed, route no longer stops
Hi, I raised an issue: https://issues.apache.org/jira/browse/CAMEL-14684 Op 9 mrt. 2020, om 16:17 heeft Guillaume Nodet het volgende geschreven: Would you mind raising a JIRA issue and attaching your test ? I'll have a look at the problem. Le lun. 9 mars 2020 à 15:48, Remco Schoen mailto:r.sch...@topdesk.com>> a écrit : Hi, I noticed that the error handling has changed in 3.1.0 from 3.0.1. We use a DeadLetterChannel and when the error has been handled, I expect the original route to stop and not to continue. When we use enrich we pass the exchange property CamelErrorHandlerHandled back to ensure the calling route stops, but that has changed. Is this correct and should we change our aggregation strategy? I added the strategy and it’s test. Kind regards, Remco Schoen -- Guillaume Nodet
Re: Camel 3.1.0: error handling changed, route no longer stops
Would you mind raising a JIRA issue and attaching your test ? I'll have a look at the problem. Le lun. 9 mars 2020 à 15:48, Remco Schoen a écrit : > Hi, > > I noticed that the error handling has changed in 3.1.0 from 3.0.1. We use > a DeadLetterChannel and when the error has been handled, I expect the > original route to stop and not to continue. > > When we use enrich we pass the exchange property CamelErrorHandlerHandled > back to ensure the calling route stops, but that has changed. Is this > correct and should we change our aggregation strategy? > > I added the strategy and it’s test. > > Kind regards, > > Remco Schoen > > > > -- Guillaume Nodet
Re: Camel 3.1.0: error handling changed, route no longer stops
Hi, The files have been removed, so I post the import parts of it. The strategy: Exchange aggregate(Exchange oldExchange, Exchange newExchange) { oldExchange.in.body = newExchange.in.body // Default Camel: Enricher.defaultAggregationStrategy() // Default Camel: Enricher => CopyAggregationStrategy if (newExchange.properties.CamelErrorHandlerHandled) { oldExchange.properties.CamelErrorHandlerHandled = newExchange.properties.CamelErrorHandlerHandled } return oldExchange } The test: void configure() throws Exception { DeadLetterChannelBuilder deadLetterChannelBuilder = deadLetterChannel(ErrorRoutes.ERROR) deadLetterChannelBuilder.setUseOriginalMessage(true) from("direct:failingRoute") .errorHandler(deadLetterChannelBuilder) .to("mock:failingRoute") .throwException(new RuntimeException('Boem!')) from("direct:nextRoute") .to("mock:nextRoute") from('direct:start') .enrich('direct:failingRoute', new BodyOnlyAggregationStrategy()) .to('direct:nextRoute') } void exceptionRouteTest() { getMockEndpoint("mock:failingRoute").expectedMessageCount(1) getMockEndpoint("mock:nextRoute").expectedMessageCount(0) template.sendBody('direct:start', null) assertMockEndpointsSatisfied() } Regards, Remco Op 9 mrt. 2020, om 15:47 heeft Remco Schoen mailto:r.sch...@topdesk.com>> het volgende geschreven: Hi, I noticed that the error handling has changed in 3.1.0 from 3.0.1. We use a DeadLetterChannel and when the error has been handled, I expect the original route to stop and not to continue. When we use enrich we pass the exchange property CamelErrorHandlerHandled back to ensure the calling route stops, but that has changed. Is this correct and should we change our aggregation strategy? I added the strategy and it’s test. Kind regards, Remco Schoen
Camel 3.1.0: error handling changed, route no longer stops
Hi, I noticed that the error handling has changed in 3.1.0 from 3.0.1. We use a DeadLetterChannel and when the error has been handled, I expect the original route to stop and not to continue. When we use enrich we pass the exchange property CamelErrorHandlerHandled back to ensure the calling route stops, but that has changed. Is this correct and should we change our aggregation strategy? I added the strategy and it’s test. Kind regards, Remco Schoen
LTS and non-LTS releases
Hi Cameleers, we have been discussing introducing LTS/non-LTS releases on the developers mailing list[1]. You also might have noticed a blog post on this topic[2]. I'd like to introduce the wider community to this, so please chime in with your thoughts on this in this thread. zoran [1] https://lists.apache.org/thread.html/rb981ecfeee51fca4c0e9a009a062b139b08074f6afb966387d2f68f1%40%3Cdev.camel.apache.org%3E [2] https://camel.apache.org/blog/LTS-Release-Schedule/ -- Zoran Regvart