You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by sgliu <sh...@sina.com> on 2006/11/24 06:46:10 UTC

help me

In C++,how to achieve message's persistence?
produce and consumer .

Can you give me some code?
-- 
View this message in context: http://www.nabble.com/help-me-tf2695968.html#a7518195
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: help me

Posted by sgliu <sh...@sina.com>.
I see.Thanks a lot.


James.Strachan wrote:
> 
> On 11/24/06, sgliu <sh...@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/
> 
> 

-- 
View this message in context: http://www.nabble.com/help-me-tf2695968.html#a7535581
Sent from the ActiveMQ - User mailing list archive at Nabble.com.


Re: help me

Posted by James Strachan <ja...@gmail.com>.
On 11/24/06, sgliu <sh...@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/