activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mittler, Nathan" <>
Subject RE: How to get a message redelivered in CMS c++
Date Wed, 17 Oct 2007 18:32:43 GMT
It sounds to me like the solution needs to be at the application-level.
Here's a few ideas that come to mind:

1) Asynchronous delivery: you could queue them up until you're system is
ready to process them.

2) Asynchronous delivery: When you are in a state to process messages,
you could register the message listener, thus starting the flow of
message events.  When you are no longer able to process messages, remove
the message listener - this will cause messages to internally queue up
until you're ready to process them again.

3) You could do synchronous polling of the queue when you are in a state
to handle the messages


> -----Original Message-----
> From: Fred Crable [] 
> Sent: Wednesday, October 17, 2007 10:47 AM
> To:
> Subject: How to get a message redelivered in CMS c++
> Hi, I'm using activemq-cpp-2.1.  It is working great, thanks 
> to all!  I have a system that consumes messages and does 
> network provisoning against network devices which may be 
> locked for a very long time.  I still need to perform the 
> work in the message, but I need to do it later after the lock 
> is cleared (usually because someone has requested to do work 
> against the same device).
> Questions are:
> Is there a way to requeue the message for redelivery on the 
> same queue?   I
> see a rollback method and transactions, but they seem to be 
> internal to the ActiveMQ library and not on the cms available side.
> If so, can I queue it up for delivery later either by 
> priority (pushing it down to lower priority) or by time (say 
> 2 minutes later?)
> If the answers to either of these are no, is the best 
> alternative is to requeue it to myself on a "slowly polled" 
> queue that I get to later?  Is there a slick way to just 
> "move" messages if I have both a consumer & provider opened?
> Thanks, Fred
> --
> View this message in context: 
> c%2B%2B-tf4640926s2354.html#a13254835
> Sent from the ActiveMQ - User mailing list archive at

View raw message