Hi,

I am trying to use the Camel file component to write to a single file but no
matter what I do it always generates multiple files.

My conf looks like the following -

     <route>
               <from
uri="timer://consolidateEvents?fixedRate=true&amp;period=60000"/>
               <bean ref="usageConsolidator" method="getConsolidatedEvents"/>
               <to uri="file://C:/Backup"/>
      </route>

and I am setting
exchange.getOut().setHeader(Exchange.FILE_NAME,"report.txt") in my
usageConsolidator bean. 

I have tried -

     <route>
               <from
uri="timer://consolidateEvents?fixedRate=true&amp;period=60000"/>
               <bean ref="usageConsolidator" method="getConsolidatedEvents"/>
               <to uri="file://C:/Backup?fileName=report.txt"/>
      </route>

but that doesn't work because I get exceptions that there was 1 parameter
couldn't be set on the end point - [fileName].

Any help would be appreciated.
-- 
View this message in context: 
http://www.nabble.com/Controlling-name-of-the-file-using-the-File2-Component.-tp25618467p25618467.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to