Hi

What version of Camel do you use? And can you print the entire
stacktrace, assuming there is more than just a WARN log.

On Wed, Oct 1, 2014 at 1:47 PM, junaid <mjunaidmuzam...@gmail.com> wrote:
> Hello,
>
> I am using Camel Restlet component for connecting an HTTP Server. I am
> sending messages to the HTTP server using the producer Template inside a
> camel Processor.
>
> Exchange ex = producerTemplate.request(url, body, headers);
>
> Under normal flow operation (i.e. when the web server is available),
> everything works fine. I am able to get the response as well as exception in
> case of errors like 404 using ex.getException().
>
> The problem arise when the web server gets down. In this case, none of the
> exception gets caught in the exchange but the following log is printed.
>
> WARNING: An error occurred during the communication with the remote HTTP
> server.
> org.apache.http.conn.HttpHostConnectException: Connection to
> http://192.168.21.26:8080 refused
> .............
>
>
> How can I handle this particular exception through Apache Camel?
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp5757279.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cib...@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Reply via email to