activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sgliu <sheng...@sina.com>
Subject Message's live time
Date Sun, 26 Nov 2006 05:03:30 GMT

I konw the function Message::setCMSExpiration(long).I think it is live time
of message.
But follow code,10 second later,I receive message yet.
...
session = connection->createSession( Session::AUTO_ACKNOWLEDGE );
destination = session->createTopic( "mytopic" );
...
producer->setDeliveryMode( DeliveryMode::PERSISTANT );
...
string text = "Hello world!"
TextMessage* message = session->createTextMessage( text );
message->setCMSExpiration(10000);
producer->send( message );
delete message;

Why?
-- 
View this message in context: http://www.nabble.com/Message%27s-live-time-tf2706004.html#a7544897
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Mime
View raw message