FAQ
Hello list!

I have a question related to the
org.apache.camel.processor.aggregate.AggregationStrategy in conjunction with
the enrich DSL, the onException definition and a thrown exception (we are
using Camel 2.2.0-fuse-02-00).

Our simplified route looks like the following:
{code}
onException(Exception.class)
     .maximumRedeliveries(0)
     .handled(true)
     .inOnly("seda:queue:wsResponseFile")
.end();

from("direct:start")
     .split(body(String.class).tokenize("\n"))
     .enrich("direct:subroute", new MySubrouteAggregationStrategy())
     .inOnly("seda:queue:wsResponseFile")
.end();

from("direct:subroute").process(new Processor() {
     public void process(Exchange exchange) throws Exception {
         throw new Exception("forced Exception");
     }
     })
.end();
{code}

In this configuration, the "MySubrouteAggregationStrategy" is called.

If I set "handled(false)" in my onException definition, the
"MySubrouteAggregationStrategy" is _NOT_called.

Is this an expected behavior? I didn't found any documentation about the
expected behavior...

Camel 2.6.0 has the same behavior...

Thank you in advance,
Christian

Search Discussions

Discussion Posts

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 1 of 2 | next ›
Discussion Overview
groupusers @
categoriescamel
postedMar 15, '11 at 10:12a
activeJun 18, '15 at 8:54a
posts2
users2
websitecamel.apache.org

2 users in discussion

Noone100: 1 post Christian Mueller: 1 post

People

Translate

site design / logo © 2022 Grokbase