On Mon, Aug 8, 2011 at 11:14 AM, shekher awasthi
<[email protected]> wrote:
> i tried something this
>
>
> from("direct:start").pollEnrich("file:data/csv?noop=true").to("direct:end");
>
> from("direct:end").unmarshal().csv().bean(*new
> *
>
> CSVConverterBean(),"processCSVInvoice").to("xslt:XMLConverter.xsl").to(
> "file:data/csvoutput?fileName=test11.xml");
> still it polling the folder data/csv multiple time
>

This is fixed in Camel 2.8.0


> On Mon, Aug 8, 2011 at 2:04 PM, Claus Ibsen <[email protected]> wrote:
>
>> Hi
>>
>> You can alternative stop the route from the route. See this FAQ
>> http://camel.apache.org/how-can-i-stop-a-route-from-a-route.html
>>
>> You may also want to look at the Content Enricher EIP
>> http://camel.apache.org/content-enricher.html
>>
>> Where you can from a route poll the file, using pollEnrich, which will
>> poll the file once.
>> This allows you to start the route from a direct consumer or something
>> else. And thus only poll the file on demand.
>>
>>
>> On Mon, Aug 8, 2011 at 8:46 AM, shekher awasthi
>> <[email protected]> wrote:
>> > Hi All,
>> >
>> > While working around with camel i came across a requirement where i need
>> to
>> > pick a file from a directory only when user click on the execute button
>> and
>> > once it has been processed i want to avoid the polling
>> > functionality build in camel
>> >  for e.g
>> > for this route
>> > from("file:data/csv?fileName=input-customer2.csv?noop=true")
>> >
>> > after processing the file camel keep polling data/csv folder till i am
>> > closing the context which we want to avoid (no idea if this is a good
>> > approach)
>> > all we want it that once it route executed camel should not keep polling
>> the
>> > location, it should only poll the location when user click a button.
>> >
>> >
>> > Thanks in advance
>> > Umesh
>> >
>>
>>
>>
>> --
>> Claus Ibsen
>> -----------------
>> FuseSource
>> Email: [email protected]
>> Web: http://fusesource.com
>> Twitter: davsclaus, fusenews
>> Blog: http://davsclaus.blogspot.com/
>> Author of Camel in Action: http://www.manning.com/ibsen/
>>
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: [email protected]
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.blogspot.com/
Author of Camel in Action: http://www.manning.com/ibsen/

Reply via email to