camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: route scoped onException
Date Mon, 13 Dec 2010 10:58:29 GMT
On Fri, Dec 10, 2010 at 10:10 PM, John <John.Fansler@ateb.com> wrote:
>
> Hi,
>
> I'm using camel 2.2 to create an aggregation route with an onException.
> Unfortunately it appears the onException.end() and
> aggregate().groupExchanges() are exclusive? I know the .end() is required on
> the onException, but adding it causes the groupExchanges to warn "the method
> groupExchanges is undefined for the type Object".
>
> Here's my route:
>
>        from(activemq:somequeue)
>            .routeId("myRoute")
>
> .onException(ConnectException.class).maximumRedeliveries(-1).redeliverDelay(30000)
>            .aggregate().constant(true).groupExchanges().batchTimeout(5000)
>                .beanRef("processAggregationBean")
>                .to("http://some_web_service");
>
> How can I use onException in this route?
>

Is the aggregate part of the onException or not?

Add .end() where you want the onException to end.


> Thanks,
>
> -john
> --
> View this message in context: http://camel.465427.n5.nabble.com/route-scoped-onException-tp3300994p3300994.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Mime
View raw message