You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by navneek <na...@gmail.com> on 2007/10/25 11:36:47 UTC
Persistence in ActiveMQ
Hi,
Im using apache-activemq-5.0.0.2-fuse. I would like to persist all messages
which im sending and receiving. Could anyone please help me how this works
and what configuration I have to make.
I would use either jdbcjournel or pure database persitence. Please help me
to accomplish this,,,
-Navneeth.
--
View this message in context: http://www.nabble.com/Persistence-in-ActiveMQ-tf4689558s2354.html#a13403066
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: Persistence in ActiveMQ
Posted by James Strachan <ja...@gmail.com>.
BTW in a JMS client, persistence is on by default.
On 06/12/2007, Bruce Snyder <br...@gmail.com> wrote:
> On Dec 5, 2007 10:25 AM, mule1 <ua...@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
Re: Persistence in ActiveMQ
Posted by Bruce Snyder <br...@gmail.com>.
On Dec 5, 2007 10:25 AM, mule1 <ua...@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/
Re: Persistence in ActiveMQ
Posted by mule1 <ua...@yahoo.com>.
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
Please help.
navneek wrote:
>
> Hi,
> Im using apache-activemq-5.0.0.2-fuse. I would like to persist all
> messages which im sending and receiving. Could anyone please help me how
> this works and what configuration I have to make.
> I would use either jdbcjournel or pure database persitence. Please help me
> to accomplish this,,,
>
> -Navneeth.
>
--
View this message in context: http://www.nabble.com/Persistence-in-ActiveMQ-tf4689558s2354.html#a14176273
Sent from the ActiveMQ - User mailing list archive at Nabble.com.