camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marco Mistroni <>
Subject Camel Exception Handling issue
Date Fri, 24 Aug 2012 20:27:12 GMT
HI all
 i have implemented exception handling in my camel app this way

            <camel:from uri="seda:processBloombergShares" />
            <camel:bean ref="bloombergServiceActivator" method="fetchData"
uri="bean:sharesEndpointBean?method=handleBloombergShare" />
                <camel:to uri="seda:report" />
uri="bean:exceptionHandler?method=handleException" />

and Here's my exception handler

public void handleException(Exchange exchange) {"-------Handling exceptions with exchange:");"exception:" + exchange.getException());

However it appears that exchange.getException() is null somehow, as from
the logs i can see

INFO ExceptionHandler * exception:null

what am i doing incorrect?  shall i remove  <camel:handled>?

w/kindest regards

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message