activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim Alateras <j...@comware.com.au>
Subject setting a policy on a particular queue
Date Sun, 01 Jul 2007 06:25:47 GMT
I have a queue which i use to publish the status of the device.

The consumer will dequeue the status and send it to a central management
system at a configurable frequency. The publisher will publish a new
status only when there is a change in the device state.

In some circumstances the queue will contain multiple device messages
but only the most recent one is valid.

I was wondering whether there was a way to apply the following policy to
the queue  such that it only holds the most recent device status.

Can I limit the size of the queue to 1 message; the most recent one.

cheers
</jima>


Mime
View raw message