activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ukocasarac <ukocasa...@gmail.com>
Subject Delete all items with same Message Groups id
Date Mon, 06 Aug 2012 08:20:09 GMT
Hi everyone,
I am adding some item on active mq queue with message group id
(JMSXGroupID). When someting goes wrong on queue consumer i would like to
delete all items with same message group id. 

For example i have one queue and i have added 5 items to it.

Message id =1 
*Message Group id = 1   Message=Test Message 1 on group1  *
Message id =2 
*Message Group id = 1   Message=Test Message 2 on group1  *
Message id =3 
*Message Group id = 2   Message=Test Message 1 on group2*
Message id =4 
*Message Group id = 2   Message=Test Message 2 on group2*
Message id =5 
*Message Group id = 1   Message=Test Message 3 on group1  *

When i consume first message i get some exception. So i would like to delete
all message which have same group id. In this case i would like to delete
Message2 and Message5 without send them to consumers.

Is there any way to accomplished this.

Thanks,




--
View this message in context: http://activemq.2283324.n4.nabble.com/Delete-all-items-with-same-Message-Groups-id-tp4654808.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message