camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tarun Kumar <agrawal.taru...@gmail.com>
Subject onException in camel
Date Thu, 27 Jun 2013 08:14:05 GMT
My route configure method looks like this:

public void configure() {

 onException(IOException.class).handled(true).bean(ExceptionHandler.class,
"handleException");

   from().process().bean(firstBean.class, "abc").process().end();
}

"abc" method of firstBean throws IOException, still, "handleException"
method of ExceptionHandler class is not being invoked. What can be the
reason?

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