Hi Gordon, Thanks so much for your help. I think I got this to work partially now. The Linear Store inside the broker seems to be working, because I see the below messages: 2015-09-03 15:39:58 [Store] info Linear Store: Most recent persistence id found: 0x0 2015-09-03 15:39:58 [Store] info Linear Store: Recovered exchange "topic.xxx"
However, if I create a durable exchange and send durable messages to it, and then shutdown the broker, and restart the broker. The broker did not retain those messages. Please see the commands and queue statistics below. What did I do wrong? ./qpid-config -a localhost:5672 --durable add exchange topic topic.xxx inside the publisher code, I did: Message msg = Message(s); msg.setDurable(1); sender.send(msg); Aggregate Broker Statistics: (BEFORE shutdown) Statistic Messages Bytes ============================================= queue-depth 0 0 total-enqueues 3 627 total-dequeues 3 627 persistent-enqueues 3 627 persistent-dequeues 3 627 Aggregate Broker Statistics: (AFTER shutdown) Statistic Messages Bytes ============================================= queue-depth 0 0 total-enqueues 0 0 total-dequeues 0 0 persistent-enqueues 0 0 persistent-dequeues 0 0 Thanks jjw On Thu, Sep 3, 2015 at 2:29 PM, Gordon Sim <g...@redhat.com> wrote: > On 09/03/2015 08:16 PM, jjw tectec wrote: > >> Thanks for your reply. I had tried many different command options before, >> they all had different problems. Below is the output of the execution: >> >> ./qpidd -p 5672 --auth no --load-module ./linearstore.so >> >> 2015-09-03 14:12:50 [Broker] notice Broker (pid=6278) start-up >> 2015-09-03 14:12:50 [Store] notice Linear Store: Store module initialized; >> store-dir=/home/mmos/.qpidd >> 2015-09-03 14:12:50 [Store] notice Linear Store: Store module initialized; >> store-dir=/home/mmos/.qpidd >> 2015-09-03 14:12:50 [Broker] error Multiple store plugins are not >> supported >> 2015-09-03 14:12:50 [Broker] critical Broker (pid=6278) start-up failed: >> Failed to start broker: Multiple store plugins were loaded >> (/home/mmos/qpid/qpid-cpp-0.34/src/qpid/broker/Broker.cpp:505) >> > > Ok, so this probably mean you have the store module installed into the > default module directory. One option is to just leave out the --load-module > ./linearstore.so. The one issue there is you need to make sure the version > of the module you load is compatible with the qpidd binary. > > The other option is to add --no-module-dir i.e. > > ./qpidd -p 5672 --auth no --no-module-dir --load-module ./linearstore.so > --log-enable info+ > > That should at get the module loaded and hopefully the rest of the errors > were related to trying to load the module twice. > > Once the module is loaded, the other point to note is that only durable > messages on durable queues are actually written to disk. > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@qpid.apache.org > For additional commands, e-mail: users-h...@qpid.apache.org > >