Hello everyone,
My question didn't get much attention on my first attempt so I'll make
another one...
Maybe a clarifaction of what I'm trying to do helps. I'm using Karaf as a
deployment container for Camel routes. I start services, using file install,
that house camel routes. The routes are configurable using the configuration
admin via file install. E g I have a general file transfer route in Camel
that looks like this:
from(mFromUri).to(mToUri);
...where "mFromUri" and "mToUri" are properties configured via configuration
admin. Camel itself supports a "property concept" and an example of a
"mFromUri" I might want to use is:
file://inbox?move=backup/${date:now:yyyMMdd}/${file:name}
This will cause Camel to poll the inbox folder and archive completed files
in a backup folder that is named with todays date.
However, since file install always does property substitution itself (in
this case I want Camel to do it - not file install), the URI sent to Camel
will be:
file://inbox?move=backup//
This is because the strings ${date:now:yyyMMdd} and ${file:name} will be
transformed to empty strings since file install will regard them as
properties that are not defined.
How can I work around this? Any clues?
/Bengt
2010/5/26 Bengt Rodehav <[email protected]>
> I'm using the File Install component and cannot find a way to set values
> like "${abc}" (without the quotes). File install insists on performing
> property substitution which I do not want in this case. I noticed that this
> seems to have been addressed in version 3.0.0 but I cannot get it to work.
> My question is: How can I set a value to "${abc}" (without the quotes)
> without File install trying to perform property substitution?
>
> /Bengt
>