Re: HTTP Status code propogation from HttpComponent

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: HTTP Status code propogation from HttpComponent

Srivatsa Katta

Hi,

Yep that worked thanks..


Claus Ibsen-2 wrote:

>
> Hi
>
> Try with option throwExceptionOnFailure=false on the http endpoint.
>
>
>
> On Wed, Aug 12, 2009 at 9:10 AM, Srivatsa Katta<[hidden email]>
> wrote:
>>
>> Hi,
>>
>> We have a scenario where we just have to intercept the calls between a
>> http
>> server and the client.
>>
>> So the route we have configured looks like this.
>>
>> from("jetty:http://localhost:6666?matchOnUriPrefix=true").to("http://localhost:8899");
>>
>> from("jetty:http://localhost:8899?matchOnUriPrefix=true").to("cxfbean:customerCXFService");
>>
>> The client uses the jetty:http://localhost:6666 for any requests, we have
>> to
>> intercept and the redirect the request to an other http server which is
>> jetty:http://localhost:8899, this application is kind of becoming a proxy
>> for an other web server.
>>
>> The problem we have is, when the actual cxf service returns http status
>> codes like (200, 301, 404..) the same codes are not propagated back to
>> the
>> original client. Bud did notice this behaviour, it propagates back all
>> the
>> status codes with 2xx but for all other status codes it just returns http
>> status code as 500.
>>
>> Is it a problem with http component ? or is it the expected behaviour of
>> http component. If so how do we get around this problem ?
>>
>> Any help is appreciated.
>>
>> Cheers!!
>> Katta
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/HTTP-Status-code-propogation-from-HttpComponent-tp24931141p24931141.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
>>
>>
>
>
>
> --
> Claus Ibsen
> Apache Camel Committer
>
> Open Source Integration: http://fusesource.com
> Blog: http://davsclaus.blogspot.com/
> Twitter: http://twitter.com/davsclaus
>
>

--
View this message in context: http://www.nabble.com/HTTP-Status-code-propogation-from-HttpComponent-tp24931141p24931661.html
Sent from the Camel - Users mailing list archive at Nabble.com.