If you want your consumer (even a durable one) to receive the messages, it
would have to have been registered on the topic before the message was
sent.  At that point, you could kill your consumer and bring it back up and
it will get the messages it missed.

The way you have your application setup, what you'd need is a retroactive
consumer (http://activemq.apache.org/retroactive-consumer.html).  This will
allow your consumer to receive messages that were sent before it came
online.

Nate

On 7/19/07, Nydia <[EMAIL PROTECTED]> wrote:



nmittler wrote:
>
> Is it possible that you're sending the message before you've created the
> consumer?
>
>
yes ,first I run the producer,after finishing the sending,I run the
consumer
to recive the message.because,I thought,the message is persistent,and the
consumer is DurableConsumer ,I could recive anytime.am I right?
--
View this message in context:
http://www.nabble.com/question-about-c%2B%2B-client%28DeliveryMode%3A%3APERSISTENT-%29-tf4107862s2354.html#a11700928
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Reply via email to