[ https://issues.apache.org/activemq/browse/CAMEL-1546?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=51293#action_51293 ]
Claus Ibsen edited comment on CAMEL-1546 at 4/20/09 2:31 AM: ------------------------------------------------------------- Frank can you try adding an empty/noop processor? Could be an issue how the aggregator model is build and how you define where it *ends*. And I suspect it. *Anyway splitting into a sub route should work, also to indicate that your route is two fold* You can split you route into a sub route using seda to force async, that should work. {code} <route> <from uri="jms:queue:InQueue"/> <aggregate batchTimeout="5000" strategyRef="MyAggregationStrategy"> <correlationExpression> <header>MyCorrelationId</header> </correlationExpression> <to uri="seda:processAggregated"/> </aggregate> </route> <route> <from uri="seda:processAggregated"/> <to uri="bean:AggregatedItemsTransformProcessor" /> <to uri="jms:queue:OutQueue" /> </route> {code} was (Author: davsclaus): Frank can you try adding an empty/noop processor? Could be an issue how the aggregator model is build and how you define where it *ends*. And I suspect it. *Anyway splitting into a sub route should work, also to indicate that your route is two fold* You can split you route into a sub route using seda to force async, that should work. <route> <from uri="jms:queue:InQueue"/> <aggregate batchTimeout="5000" strategyRef="MyAggregationStrategy"> <correlationExpression> <header>MyCorrelationId</header> </correlationExpression> <to uri="seda:processAggregated"/> </aggregate> </route> <route> <from uri="seda:processAggregated"/> <to uri="bean:AggregatedItemsTransformProcessor" /> <to uri="jms:queue:OutQueue" /> </route> > Exception handler is not applied for aggregate component > -------------------------------------------------------- > > Key: CAMEL-1546 > URL: https://issues.apache.org/activemq/browse/CAMEL-1546 > Project: Apache Camel > Issue Type: Bug > Components: camel-core > Affects Versions: 2.0-M1 > Reporter: Frank Schwarz > > <camelContext xmlns="http://camel.apache.org/schema/spring"> > <onException> > <exception>java.lang.Exception</exception> > <!-- no retry, just dump the error --> > <handled><constant>true</constant></handled> > <convertBodyTo type="java.lang.String" /> > <to uri="bean:ErrorMessageTransformProcessor" /> > <to uri="freemarker:error.ftl" /> > <to uri="file:///C:/temp/camel/err" /> > </onException> > ... > <route> > <from uri="jms:queue:InQueue"/> > <aggregate batchTimeout="5000" > strategyRef="MyAggregationStrategy"> > <correlationExpression> > <header>MyCorrelationId</header> > </correlationExpression> > <to uri="bean:AggregatedItemsTransformProcessor" /> *** > <to uri="jms:queue:OutQueue" /> > </aggregate> > </route> > </camel> > If in the bean *** occurs an exception, nothing happens. Debugging shows that > the exception handler is not triggered. Nothing is logged. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.