Its not super easy but you need to use a separator in your properties
file for the ftp servers

And then you can use the split method and grab the first array

Something a like
${headers.ftp.endpoint.split(";")[0]}



On Wed, Jan 25, 2017 at 9:18 AM, L F <l891...@yahoo.com.invalid> wrote:
> Hello camel users,
> I have a spring DSL defined route and a properties file, where i have defined 
> let's say some FTP connection endpoints.
> the properties file looks like this:
> ftp1=ftp://test1@host.comftp2=ftp://te...@host1.com......
> and i have a header ftp.enpoint=ftp1
> I would like to get one of the value based on a header value and use that in 
> a <toD uri="{{${headers.ftp.endpoint}}"/>
>
> Is it possible?
> Regards,Laji
>



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Reply via email to