camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kcostilow <kcosti...@accelarad.com>
Subject Re: Multicast Aggregation Exception Handling
Date Mon, 22 Aug 2011 19:15:58 GMT
Answering my own question #2, because I found a workaround:

Setting exception to null in aggreate() passes the unit test:

        public Exchange aggregate(Exchange oldExchange, Exchange
newExchange) {
            Throwable t = newExchange.getProperty(Exchange.EXCEPTION_CAUGHT,
Throwable.class);
            if (t != null) {
                System.err.println(t);
                exceptions.add(t);
                
                newExchange.setException(null);
            }

            return newExchange;
        }     



--
View this message in context: http://camel.465427.n5.nabble.com/Multicast-Aggregation-Exception-Handling-tp4724273p4724338.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message