Re: moving file with camel

2016-12-06 Thread Allan C.
I think using timer/quartz with content enricher (pollEnrich) could be your solution. Regards, Allan C. On Tue, Dec 6, 2016 at 4:46 PM, Jan Matèrne (jhm) wrote: > > -I want to filter multiple format file (as .html,.jpg...).How can I do > > it? > > You could read only these files: > http://camel

AW: moving file with camel

2016-12-06 Thread jhm
> -I want to filter multiple format file (as .html,.jpg...).How can I do > it? You could read only these files: http://camel.apache.org/file2.html Option "fileName": For consumers, it's used as a filename filter. Or Options include/antInclude/exclude/antExclude Or you use a content based router o

Re: moving file with camel

2016-12-06 Thread axdz
Dear, -I want to filter multiple format file (as .html,.jpg...).How can I do it? -I want to set time (time format only includes hours as 04:00) for route moving file.Please give me some advice. Thanks, -- View this message in context: http://camel.465427.n5.nabble.com/moving-file-with-camel

Re: moving file with camel

2011-03-18 Thread Claus Ibsen
On Wed, Mar 16, 2011 at 2:42 PM, adi milis wrote: > Thanks .. It works now > > btw, I got the code from the first chapter of your book in amazon, > in Easy Configuration section, the code doesnt even mention about regex. Jonathan updated chapter 2 to mention regexp and show how to filter only XML

Re: moving file with camel

2011-03-16 Thread adi milis
Thanks .. It works now btw, I got the code from the first chapter of your book in amazon, in Easy Configuration section, the code doesnt even mention about regex. On Wed, Mar 16, 2011 at 7:39 PM, Claus Ibsen wrote: > Hi > > The include option is using Java Reg Exp so you have to configure tha

Re: moving file with camel

2011-03-16 Thread Claus Ibsen
Hi The include option is using Java Reg Exp so you have to configure that with a valid regexp. So to only include PNG files you do like this: .*png$ This is a reg exp to match a string ending with png. On Wed, Mar 16, 2011 at 1:30 PM, adi milis wrote: > Hi, > > I want to create simple routing

moving file with camel

2011-03-16 Thread adi milis
Hi, I want to create simple routing in camel, to filter and move file the case, I have one input folder, depends on the extention, it will be moved to other folder my routings are try { context.addRoutes(new RouteBuilder() { public void configure() { from("file:data