Why don't you post an example of what you're doing somewhere in github? something I (we) can simply use with a simple maven command. I usually suggest using one of our examples as an example.
Since you're using embedded, it seems you're doing something wrong. On Tue, Apr 17, 2018 at 11:30 PM, EvgenyM <evgeny.minkev...@gmail.com> wrote: > 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 -- Clebert Suconic