On Sun, May 4, 2014 at 9:38 AM, Chirag Dewan <chirag.dewa...@yahoo.in> wrote: > Hi, > > Can I consume all the files in a directory,using poll enrich? > > My route would be something like : > > from("seda:abc").pollEnrich("file:/path/of/directory?delete=true).to("file:/path/of/output); > > And I send requests to the route with null body or blank body. > > context.createProducerTemplate().sendBody("seda:abc",null/""); > > BR, > > Chirag Dewan
Hi No pollEnrich polls one file at a time. You may try to use the control bus instead, to start a route that moves the files. route id = foo from file dir to file outdir And then use controlbus to send a message to start route with id = foo http://camel.apache.org/controlbus -- Claus Ibsen ----------------- Red Hat, Inc. Email: cib...@redhat.com Twitter: davsclaus Blog: http://davsclaus.com Author of Camel in Action: http://www.manning.com/ibsen hawtio: http://hawt.io/ fabric8: http://fabric8.io/