No I did not have to go that far :) ... I introduced a bean that sets up the
command to be executed on the exchange body ( exchnage.getIn() and on
exchange.getOut). Luckily in my case, I did not have to chnage the to uri.
But I am sure, you can achieve a "dynamic SSH to uri" using bean's get
method. I have done similar one in another project for "file to uri" as
shown below. 

e.g 
<to
uri="file:{{FILECOPY_OUTPUTDIR}}?fileName=${bean:fileCopyMapper.getFullPath}"/>

Technically I am not using the Slip but achieving the same output.

Hope this helps.

regards





--
View this message in context: 
http://camel.465427.n5.nabble.com/SSH-using-dynamic-slip-tp5733752p5733965.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to