You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Mark Fenbers <Ma...@noaa.gov> on 2010/12/04 18:52:17 UTC

Change Expiration

Greetings,

My client app creates a message with a 12-hour expiration and sends the 
message to the broker.  But later, from another client app, I want to 
revise the expiration of the original message.  Is this possible?

Or, if not possible, or too complicated, another option would be to 
reset/clear all messages for the appropriate topic/queue from a client 
app.  Is this possible?

Mark

Re: Change Expiration

Posted by Timothy Bish <ta...@gmail.com>.
On Mon, 2010-12-06 at 07:49 -0800, fenbers wrote:
> But wouldn't consuming them just take them out of the queue for the current
> application/consumer?  Wouldn't the messages still linger on AMQ for all the
> other clients?
> 
> Mark

You may want to refer to the FAQ on how a Queue works in comparison to a
Topic:
http://activemq.apache.org/how-does-a-queue-compare-to-a-topic.html

Regards

-- 
Tim Bish
------------
FuseSource
Email: tim.bish@fusesource.com
Web: http://fusesource.com
Twitter: tabish121
Blog: http://timbish.blogspot.com/



Re: Change Expiration

Posted by fenbers <Ma...@noaa.gov>.
But wouldn't consuming them just take them out of the queue for the current
application/consumer?  Wouldn't the messages still linger on AMQ for all the
other clients?

Mark
-- 
View this message in context: http://activemq.2283324.n4.nabble.com/Change-Expiration-tp3072602p3074720.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: Change Expiration

Posted by James Green <ja...@gmail.com>.
Mark,

AMQ is just an elaborate FIFO queue of messages. If you need to change the
expiration on a bunch of messages, use a client to consume them. Once
flushed, you'll need to re-submit them with modified parameters as
appropriate. You might be able to do all this within a transaction - I have
not tried this myself.

James

On 4 December 2010 17:52, Mark Fenbers <Ma...@noaa.gov> wrote:

> Greetings,
>
> My client app creates a message with a 12-hour expiration and sends the
> message to the broker.  But later, from another client app, I want to revise
> the expiration of the original message.  Is this possible?
>
> Or, if not possible, or too complicated, another option would be to
> reset/clear all messages for the appropriate topic/queue from a client app.
>  Is this possible?
>
> Mark
>