You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by sabyasachi087 <sa...@gmail.com> on 2016/04/29 08:21:38 UTC

Is queue prioritization is possible if multiple queues are used to poll?

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.

Re: Is queue prioritization is possible if multiple queues are used to poll?

Posted by Claus Ibsen <cl...@gmail.com>.
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 <sa...@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