See this FAQ
http://camel.apache.org/how-to-use-a-dynamic-uri-in-to.html
Or set the header CamelFileName with the name of the file, then you
can use to instead of toD
On Thu, Sep 21, 2017 at 4:38 AM, Matthew Shaw
wrote:
> Hi All,
>
> Trying to stream to a file using message header properties to
Hi All,
Trying to stream to a file using message header properties to describe the file
name, however it is always creating a file with the literal property references.
.to("stream:file?fileName="+System.getProperty("file.streaming.location")+"/${header.JMSCorrelationId}_${header.LASN}.csv")
H
ou please give me an example based on my
> activemq message body?
>
> Thanks,
> Walter
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Dynamic-File-Name-tp5721316p5721394.html
> Sent from the Camel - Users mailing list
gt;
>
> http://camel.apache.org/schema/spring";>
>
>
>
>
> /person/city='London'
> fileName=${date:now:MMdd}_<location>___.txt"/>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Dynamic-File-Name-tp5721316.html
> Sent from the Camel - Users mailing list archive at Nabble.com
> (http://Nabble.com).
:01,78.7,78.7,78.7,178.7
Camel Route:
http://camel.apache.org/schema/spring";>
/person/city='London'
___.txt"/>
--
View this message in context:
http://camel.465427.
Try using instead of
--
View this message in context:
http://camel.465427.n5.nabble.com/how-to-use-a-dynamic-file-name-in-the-xslt-component-output-file-tp3265551p3265789.html
Sent from the Camel - Users mailing list archive at Nabble.com.