Re: Not able to get Http Response message/code in case of wrong URI

2013-05-13 Thread mbhaya
Thanks..!! -- View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-get-Http-Response-message-code-in-case-of-wrong-URI-tp5732345p5732449.html Sent from the Camel Development mailing list archive at Nabble.com.

Re: Not able to get Http Response message/code in case of wrong URI

2013-05-12 Thread Claus Ibsen
Hi Next time you should use the user mailing list for your questions about Camel http://camel.apache.org/mailing-lists.html The status code is on the org.apache.camel.component.http.HttpOperationFailedException You can get it like this: HttpOperationFailedException e = exchange.getProperty(Exch

Re: Not able to get Http Response message/code in case of wrong URI

2013-05-12 Thread mbhaya
I have seen the link..but wanted to ask is there any way in Camel to access Http status code in case I am getting an exception.. Pleas help..!! -- View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-get-Http-Response-message-code-in-case-of-wrong-URI-tp5732345p5732386.ht

Re: Not able to get Http Response message/code in case of wrong URI

2013-05-12 Thread Claus Ibsen
Hi See this link http://camel.apache.org/why-is-the-exception-null-when-i-use-onexception.html On Sat, May 11, 2013 at 9:46 PM, mbhaya wrote: > Hi > > I am new to camel and was exploring onException clause. I am using the > following way to handle exception. > > java.lang.Exception > true > >

Re: Not able to get Http Response message/code in case of wrong URI

2013-05-12 Thread mbhaya
In testProcessor I just have one method void process(Exchange e)... I want the http status code or response message..I tried to get it from Exchange.HTTP_STATUS_CODE but it gives a null value... -- View this message in context: http://camel.465427.n5.nabble.com/Not-able-to-get-Http-Response-mes

Re: Not able to get Http Response message/code in case of wrong URI

2013-05-12 Thread Willem jiang
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