My mistake. Just noticed the typo.
 
String url =
"sftp://test@$127.0.0.1?knownHostsFile=c://known_host&password=pass&binary=true&fileName=";
+ filename; 

should have been 
String url =
"sftp://[email protected]?knownHostsFile=c://known_host&password=pass&binary=true&fileName=";
+ filename; 

I also updated to use the new consumerTemplate 

        
ConsumerTemplate consumerTemplate = getContext().createConsumerTemplate();      
                        
Exchange pollExchange = consumerTemplate.receive(url);

Working now. 
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Sftp-component-host-not-set-exception-tp3367778p3373275.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to