Camel SFTP down handling

2013-09-04 Thread Monisha
Hi, I have a small camel route having SFTP location as input endpoint. I want to handle the scenario when SFTP is down. Since SFTP does not extend DefaultConsumer, I cannot use the option "consumer.bridgeErrorHandler=true". For now, when SFTP is down or the credentials given are incorrect, the rou

Camel SFTP stream download

2013-09-24 Thread Monisha
I have a camel route having SFTP location as the input endpoint. I have put streamDownload=true in the input url. The files in my input location are gzipped. I am using the following code to create a bufferedReader from the inputStream that I get from the exchange. (If I do a getClass() of the in

Preserve exception stackTrace from onException block.

2013-10-15 Thread Monisha
Hi, I have a camel route having a onException block. In the onException block, I have a small processor where I want to access the stackTrace of the caught exception. But when I try to acess the exception object like this: Exception exception =(Exception)exchange.getProperty(Exchange.EXCEPTION_CAU