This commit is contained in:
Clebert Suconic 2020-04-08 15:44:26 -04:00
commit a4f0e7660e
2 changed files with 10 additions and 1 deletions

View File

@ -308,7 +308,12 @@ public class RemotingServiceImpl implements RemotingService, ServerConnectionLif
public synchronized void startAcceptors() throws Exception {
if (isStarted()) {
for (Acceptor a : acceptors.values()) {
a.start();
try {
a.start();
} catch (Throwable t) {
ActiveMQServerLogger.LOGGER.errorStartingAcceptor(a.getName(), a.getConfiguration());
throw t;
}
}
}
}

View File

@ -2069,4 +2069,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
@LogMessage(level = Logger.Level.INFO)
@Message(id = 224103, value = "unable to undeploy queue {0} : reason {1}", format = Message.Format.MESSAGE_FORMAT)
void unableToUndeployQueue(SimpleString queueName, String reason);
@LogMessage(level = Logger.Level.ERROR)
@Message(id = 224104, value = "Error starting the Acceptor {0} {1}", format = Message.Format.MESSAGE_FORMAT)
void errorStartingAcceptor(String name, Object configuration);
}