persistence is an attribute of each message, how are you sending the messages? And you need to be sending to a queue or use durable subscriptions on a topic.
have a go with the examples, ant consumer, and producer to get started. On 26 January 2012 12:11, alexandry <grobo...@gmail.com> wrote: > Hi, i trying to figure out how to enable persistent storage at ActiveMQ. > My configuration say <broker xmlns="http://activemq.apache.org/schema/core" > brokerName="firstbroker" dataDirectory="${activemq.base}/data" > persistent="true"> that it should be persistent. > > But in following scenario it not seems to be persistent (i am at FreeBSD) > 1. I start ActiveMQ (/usr/local/etc/rc.d/activemq forcerestart) > 2. now i send message to it and confirm it it sent. > 3. restart ActiveMQ (/usr/local/etc/rc.d/activemq forcerestart) > 4. check ActiveMQ to see if it has frame to read and it return false. > > I check the permissions on kanadb and is all seems good. But all messages > erased after ActiveMQ restart > > -- > View this message in context: > http://activemq.2283324.n4.nabble.com/how-to-enable-persistent-message-store-tp4330162p4330162.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. -- http://fusesource.com http://blog.garytully.com