activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bruce Snyder" <bruce.sny...@gmail.com>
Subject Re: Persistence in ActiveMQ
Date Thu, 06 Dec 2007 07:28:43 GMT
On Dec 5, 2007 10:25 AM, mule1 <uap001@yahoo.com> wrote:
>
> Hello,
>
> I am having the same problem. I am not able to figure out how in activemq 5,
> I can persist all messages - I tried setting persistent="true" on the broker
> in activemq.xml

The persistent flag is true by default, but you also need to utilize
the MessageProducer.setDeliveryMode() method. See the Javadocs for
more info:

http://java.sun.com/j2ee/1.4/docs/api/javax/jms/MessageProducer.html#setDeliveryMode(int)

You're essentially doing the opposite of steps one and two here:

http://activemq.apache.org/how-do-i-disable-persistence.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

http://bruceblog.org/

Mime
View raw message