camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Is queue prioritization is possible if multiple queues are used to poll?
Date Wed, 04 May 2016 15:14:45 GMT
If you are using ActiveMQ then ask on their user forum, as Camel just
consume whatever it sents.



On Fri, Apr 29, 2016 at 8:21 AM, sabyasachi087 <sabyasachi087@gmail.com> wrote:
> My from bean uses a list of messages queues (between 1-300) to poll data ,
> check a condition , throttle and send it to another bean for processing.
>
> The router looks like :->
>
> from(this.getQueues()).transacted("jmsRequired").choice()
>                                 .when(this.predicate)
>                                 .to("bean:camelDataProcessor?method=execute").otherwise()
>                                 .throttle(7).timePeriodMillis(1000).asyncDelayed()
>
> .to(ExchangePattern.InOnly,"bean:camelDataProcessor?method=execute").end();
>
>
> The method "getQueues()" in the above router config, retrieves a list of
> message queues. I need to know is there a way to prioritize certain queues
> over others, so that the round-robin polling will happens in multiple level?
>
> Thanks
> Happy Coding
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Is-queue-prioritization-is-possible-if-multiple-queues-are-used-to-poll-tp5781938.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2

Mime
View raw message