Hi Claus,
Thanks for your help, the header is produced in a processor via Java
before to is invoked:
String filename = "ID_${date:header.timestamp:MMddHHmm}_mdata.xml";
exchange.getIn().setHeader(Exchange.FILE_NAME, filename);
changing it to
exchange.getIn().setHeader(Exchange.FILE_NAME, new
Hi
You should use simple instead of constant
On Wed, Feb 5, 2014 at 4:36 PM, wrote:
> Hi @ll,
>
> we have a route simplified as following:
>
> from("direct:export")
> .process(new DataProcessor())
> .setHeader("timestamp", constant(myDate))
> .setHeader(Exchange.FILENAM
Hi @ll,
we have a route simplified as following:
from("direct:export")
.process(new DataProcessor())
.setHeader("timestamp", constant(myDate))
.setHeader(Exchange.FILENAME,
constant("ID_${date:header.timestamp:MMddHHmm}_mdata.xml"))
.to("ftp://ftpserver/";)