camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hadrian Zbarcea <>
Subject Re: Can I perform a move file operation in camel?
Date Mon, 12 Nov 2012 19:51:52 GMT
If you just need to move, camel-exec would help. If you want to process 
the file and move after processing, a custom strategy with the file 
component from camel-core would help (with something like pollEnrich, I 


On 11/12/2012 02:17 PM, wrote:
> I am not a Camel expert but can use simple ( to get
to the name and path of file and then put it in the outbound queue
> -----Original Message-----
> From: gramanero []
> Sent: Tuesday, November 13, 2012 12:19 AM
> To:
> Subject: Can I perform a move file operation in camel?
> I am hoping that this is possible, but I am struggling with figuring out a
> solution.
> What I need to know is, can I move a file that already exists on the file
> system and to another folder using Spring DSL? I have a route that gets
> kicked off by having a JSON message placed onto an ActiveMQ queue. The JSON
> message contains the name and path of the file that I want to move. I am not
> sure what do to at this point.
> The route to pull off of the queue looks like this:
>      <route id="filemove" startupOrder="1" >
>          <from uri="activemq:queue:filemove"/>
>         <convertBodyTo type="String" />
>         <unmarshal ref="jsonMarshaller" />
>      </route>
> Do I need to dynamically create a FileExchange in order to move the file? Is
> there a simpler approach? Is this even possible to do in Spring DSL?
> Any hints would be greatly appreciated! Thank you.
> --
> View this message in context:
> Sent from the Camel - Users mailing list archive at
> This e-mail and any files transmitted with it are for the sole use of the intended recipient(s)
and may contain confidential and privileged information. If you are not the intended recipient(s),
please reply to the sender and destroy all copies of the original message. Any unauthorized
review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or
any action taken in reliance on the contents of this e-mail is strictly prohibited and may
be unlawful.

View raw message