mirror of https://github.com/apache/activemq.git
This closes #943
This commit is contained in:
commit
424be3ee8d
|
@ -668,10 +668,13 @@ public class BrokerService implements Service {
|
|||
persistenceAdapterToStart.setBrokerName(getBrokerName());
|
||||
LOG.info("Using Persistence Adapter: {}", persistenceAdapterToStart);
|
||||
if (deleteAllMessagesOnStartup) {
|
||||
LOG.info("Deleting all messages on startup because deleteAllMessagesOnStartup configuration has been provided");
|
||||
deleteAllMessages();
|
||||
}
|
||||
LOG.info("Starting Persistence Adapter: {}", persistenceAdapterToStart);
|
||||
persistenceAdapterToStart.start();
|
||||
|
||||
LOG.info("Starting Temp Data Store");
|
||||
getTempDataStore();
|
||||
if (tempDataStore != null) {
|
||||
try {
|
||||
|
@ -685,6 +688,7 @@ public class BrokerService implements Service {
|
|||
}
|
||||
}
|
||||
|
||||
LOG.info("Starting Job Scheduler Store");
|
||||
getJobSchedulerStore();
|
||||
if (jobSchedulerStore != null) {
|
||||
try {
|
||||
|
@ -696,6 +700,7 @@ public class BrokerService implements Service {
|
|||
throw exception;
|
||||
}
|
||||
}
|
||||
LOG.info("Persistence Adapter successfully started");
|
||||
}
|
||||
|
||||
private void startBroker(boolean async) throws Exception {
|
||||
|
|
|
@ -207,8 +207,8 @@ public class KahaDBStore extends MessageDatabase implements PersistenceAdapter,
|
|||
public void doStart() throws Exception {
|
||||
//configure the metadata before start, right now
|
||||
//this is just the open wire version
|
||||
LOG.info("Starting KahaDBStore");
|
||||
configureMetadata();
|
||||
|
||||
super.doStart();
|
||||
|
||||
if (brokerService != null) {
|
||||
|
|
|
@ -457,6 +457,7 @@ public abstract class MessageDatabase extends ServiceSupport implements BrokerSe
|
|||
}
|
||||
|
||||
public void open() throws IOException {
|
||||
LOG.info("Opening MessageDatabase");
|
||||
if( opened.compareAndSet(false, true) ) {
|
||||
getJournal().start();
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue