activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Mittler" <nathan.mitt...@gmail.com>
Subject Re: question about c++ client(DeliveryMode::PERSISTENT )
Date Thu, 19 Jul 2007 10:09:48 GMT
Is it possible that you're sending the message before you've created the
consumer?

On 7/18/07, Nydia <Darling6252002@yahoo.com.cn> wrote:
>
>
> I sent the topic message using persistent:
>   destination = session->createTopic( "TEST.FOO" );
>   producer = session->createProducer( destination );
>   producer->setDeliveryMode( DeliveryMode::PERSISTENT );
> ......
> producer->send( message );
>
> and recived the message with the codes:
> destination = session->createTopic( "TEST.FOO" );
> consumer = session->createDurableConsumer(
> (Topic*)destination,"testConsumer", "");
> consumer->setMessageListener( this );
>
> but I recived nothing! I think the sending has no problem,becouse I sent
> the
> message with c++ code(just like upsite),reviced with java client
> successed!So I think there must be some problems happened in my recive
> codes,Is there anyone could help me?thanks.
> --
> View this message in context:
> http://www.nabble.com/question-about-c%2B%2B-client%28DeliveryMode%3A%3APERSISTENT-%29-tf4107862s2354.html#a11681566
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message