Hello Gert, You understood well. I want to move a file and rename it. For instance, if the following file arrives to a directory : * /home/incoming/toto.avi* I want to move it to */home/outcoming/toto-without-audio.avi*
But in the servicemix-file component, I can't find any parameter which enables you to set a name template for the sender. I can only set the "directory" parameter of the sender. The solution you provided with Camel is one solution, and as always, I suppose that there are many ways to do the same thing. Ideally, I would like to make it without any development of Java code. Thanks, Regards, Vincent 2009/6/23 Gert Vanthienen <gert.vanthie...@gmail.com> > L.S., > > I'm not entirely sure what the overall goal is here, most of the > times, people would want to poll the file and handle the contents of > the file. Perhaps I'm completely misunderstanding the question here, > so feel free to let us know what your actual use case is and we'll > help you work out a solution. > > So I guess you want to rename files in the same directory, right? > This would basically mean that you would create a route that starts > with a file poller and specifies a filter for the files you want to > rename. The targetService on that endpoint would be a file sender, > where you need to configure the file name. > > Another way of dealing with this would be by using a camel route that > says from("file:...").setHeader(<set the new file name in the > header>).to("file..."). > > Regards, > > Gert Vanthienen > ------------------------ > Open Source SOA: http://fusesource.com > Blog: http://gertvanthienen.blogspot.com/ > > > > 2009/6/22 Cocoon Man <cocoon...@gmail.com>: > > Hello everyone, > > > > I'm quite new to this mailing list and a very beginner at ServiceMix. > > I looks really great and I'm pretty sure this new software will have a > > successfull future. > > > > Here is my first question : the servicemix-file enables you to copy or > move > > a file but how can I rename a file using this component ? > > Do I need to develop my own FileMarshaller for that ? > > Any example would be great ... > > > > Thanks, > > > > Regards, > > > > PS : I'm using Apache ServiceMix 3.3 under Windows XP > > >