[
https://issues.apache.org/activemq/browse/CAMEL-2197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=56830#action_56830
]
Claus Ibsen commented on CAMEL-2197:
------------------------------------
David I have not looked at the actual source code, but I picked up the
HdsfConsumer just to glaze it.
I think you should consider extending {{ScheduledPollConsumer}} if you want the
consumer to be schedule based. Then you got all that for free from the
camel-core to setup the intervals etc.
And the camel version is more robust as it use ExecutorService and have
reliable start/shutdown etc.
All you need to do is to implement the {{poll}} method.
Also camel-core have DEBUG/TRACE logging for starting/stopping a consumer so
that is often not needed either.
And I wonder when you read the file you may need a try .. finally block to
ensure calling the unlock method.
> A Camel component for writing into an Hadoop filesystem
> -------------------------------------------------------
>
> Key: CAMEL-2197
> URL: https://issues.apache.org/activemq/browse/CAMEL-2197
> Project: Apache Camel
> Issue Type: New Feature
> Reporter: David Greco
> Fix For: Future
>
> Attachments: patchfile.txt
>
>
> This component (in attachment) provides support for writing data into an
> Hadoop filesystem.
> You can give a look to the following blog post showing some info about its
> usage:
> http://www.davidgreco.it/MySite/Blog/Entries/2009/11/17_When_a_Camel_encounters_an_Elephant.html
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.