Hello, in the properties file would be oneĀ entry (row) for each ftp server, ftp1, ftp2... The key is specified in a header. Now i would like to get the value of the property using the header value as a key. Somehow the properties entries got concatenated in the previous mail. Kind regardsLaji
On Thursday, January 26, 2017 2:04 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: 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