You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by weggyboy <wa...@gmail.com> on 2012/06/09 13:40:49 UTC

File Competing Consumers

I was wondering if it could be possible to implement the Competing Consumers
pattern for File consumers.
My wish is currently to handle several files placed in a given folder at the
same time by different threads / processors.
Does anybody have any idea on how to do that?

Thanks!

Regards,

Wagner

--
View this message in context: http://camel.465427.n5.nabble.com/File-Competing-Consumers-tp5714255.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File Competing Consumers

Posted by Kondalarv <ko...@gmail.com>.
I don't find any example code on this. Can you please provide me a sample ?



--
View this message in context: http://camel.465427.n5.nabble.com/File-Competing-Consumers-tp5714255p5761968.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: File Competing Consumers

Posted by Claus Ibsen <cl...@gmail.com>.
On Sat, Jun 9, 2012 at 1:40 PM, weggyboy <wa...@gmail.com> wrote:

> I was wondering if it could be possible to implement the Competing
> Consumers
> pattern for File consumers.
> My wish is currently to handle several files placed in a given folder at
> the
> same time by different threads / processors.
> Does anybody have any idea on how to do that?
>
>
Yes use the threads DSL

from file
  threads
    to xxxx




> Thanks!
>
> Regards,
>
> Wagner
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/File-Competing-Consumers-tp5714255.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen