It helps if you can can create a small sample project or unit test that demonstrates any problem.
Also try without spring batch to see if you can isolate any issue. And provides details about which platform, jdk, and Camel versions you are using etc. On Wed, Oct 16, 2013 at 2:25 AM, nguyen <quynh.a.ngu...@gmail.com> wrote: > Hi Claus, > > After upgrading to Camel 2.12.1, my integration test of the job fails with > the same route which was working in Camel 2.10.3. > The file doesn't get move to the appropriate directory after the batch job > is done. > > In Camel 2.12.1, it seems to consider the property in the "move" as the > filename instead of the directory name. With further debugging, the problem > appeares that the expression for the move attribute expression is evaluted > in the GenericFileExpressionRenamer class. I can see that the expression > appends the {file:onlyname} to the end of the directory we mention. > However this does not evaluate correctly in 2.12.1 but works fine in 2.10.3. > I suspect it might be because of how the new handling of properties are > happening between spring and apache camel. Here is my file url: > > <from > > uri="file:{{batch.process.watch.directory}}?include={{lowBalance.file.name.pattern}}&delay={{lowBalance.file.poll.delay}}&doneFileName=LOWBAL_2013-23-00-00-00.70.DAT.sig&move={{batch.process.done.directory}}&moveFailed={{batch.process.failed.directory}}" > /> > > As a separate issue, using the $simple{file:name} in the doneFileName wasnt > working either. Could you please help ? > > Regards, > Q-A > > > > > > -- > 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-tp5740839p5741627.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