thanks claus.it should be ${header.CamelFileNameProduced}.. On Wed, Apr 8, 2015 at 10:32 AM, Claus Ibsen <claus.ib...@gmail.com> wrote:
> Hi > > You need to start from a file to have all those file mappings, eg > <from uri="file:..."/> > The file producer, eg to uri="file:" set a header with the name of the > file that was saved, > > See section - > Message Headers - File producer only > > At > http://camel.apache.org/file2 > > On Wed, Apr 8, 2015 at 3:01 AM, chaituu <yarlagadd...@gmail.com> wrote: > > <from uri="direct:start"/> > > <to uri="file:D://Test/?fileName=1.csv"/> > > <log message="header.Filepath:${file:absolute.path}"/> > > <to uri="velocity:Response.vm"/> > > > > why logger is not printing file:absolute.path?I want to print > > file:absolute.path in the velocity template. > > > > > > > > -- > > View this message in context: > http://camel.465427.n5.nabble.com/file-absolute-path-is-not-printing-value-tp5765449.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 > hawtio: http://hawt.io/ > fabric8: http://fabric8.io/ > -- Thanks Chaitanya