We are using Java DSL to define our routes which are nothing but pure 
'outbound' communication i.e. from("direct://xxxx").to("sftp://.....";) --> 
there is no processing and 'to' is currently SFTP, but eventually be SOAP, 
OData, REST and other protocols

Questions:

1)      How to capture exceptions? I am using 'onException(Class).bean(.....) 
--- but not getting how we can capture protocol exceptions (like SFTP username 
password is invalid or SFTP server not reachable or SOAP endpoint invalid)

2)      SFTP adapter can communicate via private key. In JAVA DSL how do I 
provide my private key DSL? to("sftp:// 
[username@]hostname[:port]/directoryname? privateKey=<What do I define here???>)

Regards,
Arpit.

Reply via email to