Use doneFileName=$simple{file:name}
To not have spring property placeholder replace this value. On Thu, Oct 3, 2013 at 11:39 PM, nguyen <quynh.a.ngu...@gmail.com> wrote: > Hi all, > > I'm using camel-spring-batch and have the following route in the my context > file: > > uri="file:{{batch.process.watch.directory}}?include={{transaction.file.name.pattern}}&delay={{transaction.file.poll.delay}}&doneFileName=${file:name}.sig&move={{batch.process.done.directory}}&moveFailed={{batch.process.failed.directory}}" > /> > > The doneFileName doesn't get replaced properly. > From the log, i can see that doneFileName become: doneFileName=name.sig > > file:/Users/xxx/target/batch-test/watch > include=MECHBAT.*.DAT&delay=1000&doneFileName=name.sig&move=/Users/xxx/target/batch-test/done&moveFailed=/Users/xxx/target/batch-test/failed > > This was working fine in Camel 2.10.3 and Camel 2.11.0. > When i upgrade to 2.12.1, the value of "doneFileName" get replaced by > "name.sig" instead of the correct file name. > > By debugging, it is happening in Spring, PropertyPlaceholderHelper > parseStringValue(). It is looking for the property "file" and it gives the > default value as "name.sig" > > Should the doneFileName be replaced in Camel before it passes to Spring? > > Can you please help/comment on how to solve the problem? > > Thanks in advance for any help, > > > > > > > > > -- > View this message in context: > http://camel.465427.n5.nabble.com/doneFileName-file-name-in-Camel-2-12-1-doesn-t-get-replaced-correctly-with-camel-spring-batch-tp5740839.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen