Thanks that works. However, how do I pass the relative folder to generate the file in from my property file?
e.g. camel doesnt allow "datafolder.inbound.path" to be inside the file component string. <route id="http-uop-hottransfer"> <from uri="quartz://hotTransfer-uop-quartz?trigger.repeatInterval=2&trigger.repeatCount=0&fireNow=true"/> <bean ref="hotTransfer-uop-endpoint" method="route"/> <to uri="log:newuophottransferxml"/> <to uri="mock:newuophottransferresult" /> <to uri="file:${datafolder.inbound.path}/?fileName=uop-hottransfer-${date:now:yyyyMMdd}.xml" /> <split> <simple>${header.CamelFileNameProduced}</simple> <to uri="log:newuophottransferxmlfile"/> </split> <!-- to uri="uopProcessor" /--> </route> ****************************************************************************************** “CONFIDENTIALITY NOTICE: The information transmitted in this message and its attachments (if any) is intended only for the person or entity to whom or which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon this information, by persons or entities other than the intended recipient is prohibited. If you have received this in error, please contact the sender and delete this e-mail and associated material from any computer. The intended recipient of this e-mail may only use, reproduce, disclose, or distribute the information contained in this e-mail and any attached files with the permission of the sender.” ----- Original Message ----- From: "Bharat Goyal" <bha...@adchemy.com> To: "users" <users@camel.apache.org> Sent: Thursday, June 2, 2011 3:39:44 PM GMT -08:00 US/Canada Pacific Subject: pass file name of generated file to next endpoint Hi, We have a route that is configured to get XML content from a http endpoint, log it to a file using the file component (as shown below). However, what we want is to pass only the path of the file and not input stream to the next component in the route. Is there a way to extract the file name and only pass that to the next uri/component in the route? Thanks <route id="http-uop-hottransfer"> <from uri="quartz://hotTransfer-uop-quartz?trigger.repeatInterval=2&trigger.repeatCount=0&fireNow=true"/> <bean ref="hotTransfer-uop-endpoint" method="route"/> <to uri="log:newuophottransferxml"/> <to uri="mock:newuophottransferresult" /> <to uri="file:/tmp/?fileName=uop-hottransfer-${date:now:yyyyMMdd}.xml" /> <to uri="log:newuophottransferxmlfile" /> </route>