You can add this option in your file endpoint "fileExist=Append"
BTW, please take some time to read the wiki page of camel file[1] [1]http://camel.apache.org/file2.html Willem ---------------------------------- Apache Camel, Apache CXF committer Open SOA http://www.fusesource.com Blog http://willemjiang.blogspot.com Tiwtter http://twitter.com/willemjiang StonePeng wrote: > > my simple use case is from direct:start to file ,but FILE component > creates a new file every time. i want to output message from direct:start > into end of the same file that is created by FILE component, how to set > FILE component? > here is my route XML: > <from uri="direct:start"/> > <to uri="file:outbox?fileName=a.txt"/> > -- View this message in context: http://camel.465427.n5.nabble.com/how-to-output-message-into-end-of-the-same-file-that-is-created-by-FILE-component-tp509811p512603.html Sent from the Camel - Users mailing list archive at Nabble.com.
