I have configured the C++ broker with data-dir.
grep data-dir ../cfg/qpidd.conf
data-dir=/home/qpidd/qpidd_runtime/qpidd_data
# no-data-dir=true
And I see the following in this qpidd_data directory:
ls ../qpidd_data/
lock systemId
$ qpid-config add queue hello-world --durable
qpid-config queues
Queue Name Attributes
==================================================
hello-world --durable --file-size=24 --file-count=8
Now, I run the java application
qpid-client-0.12/example/src/org/apache/qpid/example/
Spout.java and Drain.java.
I see that the messages are queued/removed.
But I run the Spout.java which puts the messages in the queue,
restart the broker and then run Drain.java and it does not know about the
hello-world queue.
Not only the messages are lost, it needed to do an add queue again and
nothing is being saved in my data-dir.
What else do I need to do to get this to work.
Basically, I want to have queues configured, post messages to the queues,
and then
have it saved in on the file-system/disc and when my receiver gets delete
the message from the
directory and if I have restarted the broker -- the queues and data is there
or I could add the queues but the data should be there?
Thanks for your help - Daniel.
--
View this message in context:
http://apache-qpid-users.2158936.n2.nabble.com/Durable-queues-and-the-Broker-Confiugrations-data-dir-tp6994138p6994138.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.
---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project: http://qpid.apache.org
Use/Interact: mailto:[email protected]