camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From L F <>
Subject Re: camel:propertyPlaceholder get value of a key specified as header
Date Thu, 26 Jan 2017 12:57:42 GMT

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 <> 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

On Wed, Jan 25, 2017 at 9:18 AM, L F <> 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=
> 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
> Is it possible?
> Regards,Laji

Claus Ibsen
----------------- @davsclaus
Camel in Action 2:

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message