You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by osian <os...@osian.me.uk> on 2006/12/06 09:58:30 UTC
A Question About Message Groups
Hi,
When using message groups (within 4.1), is there any way of guaranteing the
order in which the messages, within a group, are processed by the single
consumer? i.e. is there any way of setting a sequence on a message, and
ensuring that it is processed in the order of 1,2,3,4 etc, or even 1,2,4 (if
there is no 3 for a message group within ActiveMQ)?
Any pointers would be beneficial,
Regards,
Osian
--
View this message in context: http://www.nabble.com/A-Question-About-Message-Groups-tf2766866.html#a7715664
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: A Question About Message Groups
Posted by osian <os...@osian.me.uk>.
Thanks James,
Exactly what I wanted to hear,
Osh
James.Strachan wrote:
>
> On 12/6/06, osian <os...@osian.me.uk> wrote:
>>
>> Hi,
>>
>> When using message groups (within 4.1), is there any way of guaranteing
>> the
>> order in which the messages, within a group, are processed by the single
>> consumer? i.e. is there any way of setting a sequence on a message, and
>> ensuring that it is processed in the order of 1,2,3,4 etc, or even 1,2,4
>> (if
>> there is no 3 for a message group within ActiveMQ)?
>
> The messages are processed in the order in which they are sent to the
> broker; so no need to explicitly number them.
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
--
View this message in context: http://www.nabble.com/A-Question-About-Message-Groups-tf2766866.html#a7715794
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: A Question About Message Groups
Posted by James Strachan <ja...@gmail.com>.
It should go to the head - but its worth writing a unit test to check
thats the case :)
On 12/6/06, osian <os...@osian.me.uk> wrote:
>
> Hi,
>
> Another question has cropped up, if, lets say, the consumer were to go down
> whilst processing a message, does the message it was processing go to the
> back of the queue, or remain as the fist to get handed out to the next
> consumer that is available? (the consumers are using auto acknowledge),
>
> Thanks,
> Osh
>
>
> James.Strachan wrote:
> >
> > On 12/6/06, osian <os...@osian.me.uk> wrote:
> >>
> >> Hi,
> >>
> >> When using message groups (within 4.1), is there any way of guaranteing
> >> the
> >> order in which the messages, within a group, are processed by the single
> >> consumer? i.e. is there any way of setting a sequence on a message, and
> >> ensuring that it is processed in the order of 1,2,3,4 etc, or even 1,2,4
> >> (if
> >> there is no 3 for a message group within ActiveMQ)?
> >
> > The messages are processed in the order in which they are sent to the
> > broker; so no need to explicitly number them.
> >
> > --
> >
> > James
> > -------
> > http://radio.weblogs.com/0112098/
> >
> >
>
> --
> View this message in context: http://www.nabble.com/A-Question-About-Message-Groups-tf2766866.html#a7720860
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>
--
James
-------
http://radio.weblogs.com/0112098/
Re: A Question About Message Groups
Posted by osian <os...@osian.me.uk>.
Hi,
Another question has cropped up, if, lets say, the consumer were to go down
whilst processing a message, does the message it was processing go to the
back of the queue, or remain as the fist to get handed out to the next
consumer that is available? (the consumers are using auto acknowledge),
Thanks,
Osh
James.Strachan wrote:
>
> On 12/6/06, osian <os...@osian.me.uk> wrote:
>>
>> Hi,
>>
>> When using message groups (within 4.1), is there any way of guaranteing
>> the
>> order in which the messages, within a group, are processed by the single
>> consumer? i.e. is there any way of setting a sequence on a message, and
>> ensuring that it is processed in the order of 1,2,3,4 etc, or even 1,2,4
>> (if
>> there is no 3 for a message group within ActiveMQ)?
>
> The messages are processed in the order in which they are sent to the
> broker; so no need to explicitly number them.
>
> --
>
> James
> -------
> http://radio.weblogs.com/0112098/
>
>
--
View this message in context: http://www.nabble.com/A-Question-About-Message-Groups-tf2766866.html#a7720860
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: A Question About Message Groups
Posted by James Strachan <ja...@gmail.com>.
On 12/6/06, osian <os...@osian.me.uk> wrote:
>
> Hi,
>
> When using message groups (within 4.1), is there any way of guaranteing the
> order in which the messages, within a group, are processed by the single
> consumer? i.e. is there any way of setting a sequence on a message, and
> ensuring that it is processed in the order of 1,2,3,4 etc, or even 1,2,4 (if
> there is no 3 for a message group within ActiveMQ)?
The messages are processed in the order in which they are sent to the
broker; so no need to explicitly number them.
--
James
-------
http://radio.weblogs.com/0112098/