I am not a Camel expert but can use simple 
(http://camel.apache.org/simple.html) to get to the name and path of file and 
then put it in the outbound queue

-----Original Message-----
From: gramanero [mailto:graman...@gmail.com]
Sent: Tuesday, November 13, 2012 12:19 AM
To: users@camel.apache.org
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: 
http://camel.465427.n5.nabble.com/Can-I-perform-a-move-file-operation-in-camel-tp5722620.html
Sent from the Camel - Users mailing list archive at Nabble.com.
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.

Reply via email to