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: Persistence in ActiveMQ
Date Thu, 06 Dec 2007 08:54:45 GMT
BTW in a JMS client, persistence is on by default.

On 06/12/2007, Bruce Snyder <bruce.snyder@gmail.com> wrote:
> 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/
>


-- 
James
-------
http://macstrac.blogspot.com/

Open Source Integration
http://open.iona.com

Mime
View raw message