activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: help me
Date Fri, 24 Nov 2006 07:46:34 GMT
On 11/24/06, sgliu <shengguo@sina.com> wrote:
> In C++,how to achieve message's persistence?
> produce and consumer .

Set persistent mode on the producer.

http://incubator.apache.org/activemq/cms/html/classcms_1_1MessageProducer.html#976a9b3544129386608ff7d5ffab145c

producer.setDeliveryMode(DeliveryMode.PERSISTENT)

I recommend you browse the documentaiton of Session, MessageProducer
and MessageConsumer as there's not that many methods and they are
described pretty well

-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message