You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Allan Kamau <ka...@gmail.com> on 2010/11/07 11:13:34 UTC
Quest for Job queue
I am new to ActiveMQ and messaging as a whole. I am developing a
parallized application the missing component is the shared job queue
where each process picks one available job (at a time) from a job
queue, it is important that a job should not be picked by more than
one process.
Is it possible to configure ActiveMQ to host this shared job queue and
ensure that a job may only be picked only once?
Any pointers to necessary material are welcome.
Allan.
Re: Quest for Job queue
Posted by Norman Maurer <no...@apache.org>.
Ups.... Right!
Bye
Norman
2010/11/7, Rob Davies <ra...@gmail.com>:
> You mean JMS Queue ;)
> On 7 Nov 2010, at 10:30, Norman Maurer wrote:
>
>> Just use a JMX queue for this. It will do what you need out of box.
>>
>> Bye
>> Norman
>>
>> 2010/11/7, Allan Kamau <ka...@gmail.com>:
>>> I am new to ActiveMQ and messaging as a whole. I am developing a
>>> parallized application the missing component is the shared job queue
>>> where each process picks one available job (at a time) from a job
>>> queue, it is important that a job should not be picked by more than
>>> one process.
>>>
>>> Is it possible to configure ActiveMQ to host this shared job queue and
>>> ensure that a job may only be picked only once?
>>>
>>> Any pointers to necessary material are welcome.
>>>
>>> Allan.
>>>
>
>
Re: Quest for Job queue
Posted by Rob Davies <ra...@gmail.com>.
You mean JMS Queue ;)
On 7 Nov 2010, at 10:30, Norman Maurer wrote:
> Just use a JMX queue for this. It will do what you need out of box.
>
> Bye
> Norman
>
> 2010/11/7, Allan Kamau <ka...@gmail.com>:
>> I am new to ActiveMQ and messaging as a whole. I am developing a
>> parallized application the missing component is the shared job queue
>> where each process picks one available job (at a time) from a job
>> queue, it is important that a job should not be picked by more than
>> one process.
>>
>> Is it possible to configure ActiveMQ to host this shared job queue and
>> ensure that a job may only be picked only once?
>>
>> Any pointers to necessary material are welcome.
>>
>> Allan.
>>
Re: Quest for Job queue
Posted by Norman Maurer <no...@apache.org>.
Just use a JMX queue for this. It will do what you need out of box.
Bye
Norman
2010/11/7, Allan Kamau <ka...@gmail.com>:
> I am new to ActiveMQ and messaging as a whole. I am developing a
> parallized application the missing component is the shared job queue
> where each process picks one available job (at a time) from a job
> queue, it is important that a job should not be picked by more than
> one process.
>
> Is it possible to configure ActiveMQ to host this shared job queue and
> ensure that a job may only be picked only once?
>
> Any pointers to necessary material are welcome.
>
> Allan.
>
Re: Quest for Job queue
Posted by James Green <ja...@gmail.com>.
You are describing the default behaviour of an ActiveMQ consumer.
Fire up the consumer and ask for the next message in the queue. Loop.
Fire up a second (and more) consumer and loop. The messages will be handed
out evenly.
James
On 7 November 2010 10:13, Allan Kamau <ka...@gmail.com> wrote:
> I am new to ActiveMQ and messaging as a whole. I am developing a
> parallized application the missing component is the shared job queue
> where each process picks one available job (at a time) from a job
> queue, it is important that a job should not be picked by more than
> one process.
>
> Is it possible to configure ActiveMQ to host this shared job queue and
> ensure that a job may only be picked only once?
>
> Any pointers to necessary material are welcome.
>
> Allan.
>