On Dec 5, 2007 10:25 AM, mule1 <[EMAIL PROTECTED]> 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)[EMAIL 
PROTECTED]&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/

Reply via email to