Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
Thanks. Yes I am now able to catch the Exception using the getException(), but the stacktrace log is printed. Is there anyway to disable this particular log? -- View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp57572

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-02 Thread junaid
I tried with version 2.13.2, but still I am getting the same exception. Than I moved to Camel Version 2.14.0. This time the stack trace is a bit different. Oct 03, 2014 11:44:05 AM org.restlet.ext.httpclient.internal.HttpMethodCall sendRequest WARNING: An error occurred during the communication wi

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread junaid
I am using Camel 2.13 -- View this message in context: http://camel.465427.n5.nabble.com/Catching-HttpHostConnectException-from-Camel-Restlet-component-tp5757279p5757299.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread junaid
ct 1, 2014 at 1:47 PM, junaid < > mjunaidmuzammil@ > > 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. >

Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread Muhammad Junaid Muzammil
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? Junaid

Catching HttpHostConnectException from Camel Restlet component

2014-10-01 Thread junaid
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)