activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From EvgenyM <evgeny.minkev...@gmail.com>
Subject Artemis 2.4.0 : Messages lost on broker restart
Date Wed, 18 Apr 2018 03:34:20 GMT
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

Mime
View raw message