camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nguyen <quynh.a.ngu...@gmail.com>
Subject doneFileName=${file:name} in Camel 2.12.1 doesn't get replaced correctly with camel-spring-batch
Date Thu, 03 Oct 2013 21:39:36 GMT
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}}&amp;delay={{transaction.file.poll.delay}}&amp;doneFileName=${file:name}.sig&amp;move={{batch.process.done.directory}}&amp;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.

Mime
View raw message