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?

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.

Reply via email to