camel-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Willem jiang <willem.ji...@gmail.com>
Subject Re: Not able to get Http Response message/code in case of wrong URI
Date Sun, 12 May 2013 14:17:16 GMT
What are you doing in the testProcessor?


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) (English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Sunday, May 12, 2013 at 3:46 AM, mbhaya wrote:

> Hi
>  
> I am new to camel and was exploring onException clause. I am using the
> following way to handle exception.
> <onException>
> <exception>java.lang.Exception</exception>
> <handled><constant>true</constant></handled>
> <process ref="testProcessor"/>
> </onException>
>  
> Following is the route that I have defined:
> <from uri="restlet:http://localshost:9090/user">
> <enrich uri="http4://www.api (http://www.api)/" strategyRef="testStrategy"/>
>  
> now in order to test exception i have specified a wrong URI above in the
> enrich clause. when i run this exception is generated but I am not able to
> get the http response message or response code in the processor that I have
> specified in the exception clause.
>  
> Kindly suggest.
>  
>  
>  
>  
> --
> View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-get-Http-Response-message-code-in-case-of-wrong-URI-tp5732345.html
> Sent from the Camel Development mailing list archive at Nabble.com (http://Nabble.com).




Mime
View raw message