Good day,
I am just starting with Artemis ActiveMQ and might not be fully across all
the details.
My issue is that even though I have (seemingly) enabled the persistence and
configured queues as durable and persistent, I am loosing messages on the
broker restart.
Essentially I am missing something simple, but not sure what exactly.
Any help is appreciated.
My configuration:
CoreQueueConfiguration cg = new CoreQueueConfiguration()
.setAddress("MASTER")
.setRoutingType(RoutingType.MULTICAST)
.setDurable(true)
.setName("QUEUE1");
CoreQueueConfiguration cg2 = new CoreQueueConfiguration()
.setAddress("MASTER")
.setRoutingType(RoutingType.MULTICAST)
.setDurable(true)
.setName("QUEUE2");
configuration.addQueueConfiguration(cg);
configuration.addQueueConfiguration(cg2);
configuration.setPersistenceEnabled(true);
configuration.setJournalDirectory("/u00/artemis/journal");
configuration.setBindingsDirectory("/u00/artemis/bindings");
configuration.setJournalDatasync(true);
configuration.setJournalSyncNonTransactional(true);
configuration.setJournalSyncTransactional(true);
What am I missing? How do I preserve messages over the broker restart?
--
Sent from: http://activemq.2283324.n4.nabble.com/ActiveMQ-User-f2341805.html