This closes #2343
This commit is contained in:
commit
714a3f862e
|
@ -1968,4 +1968,8 @@ public interface ActiveMQServerLogger extends BasicLogger {
|
|||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224096, value = "Error setting up connection from {0} to {1}; protocol {2} not found in map: {3}", format = Message.Format.MESSAGE_FORMAT)
|
||||
void failedToFindProtocolManager(String remoteAddress, String localAddress, String intendedProtocolManager, String protocolMap);
|
||||
|
||||
@LogMessage(level = Logger.Level.ERROR)
|
||||
@Message(id = 224097, value = "Failed to start server", format = Message.Format.MESSAGE_FORMAT)
|
||||
void failedToStartServer(@Cause Throwable t);
|
||||
}
|
||||
|
|
|
@ -487,6 +487,8 @@ public class ActiveMQServerImpl implements ActiveMQServer {
|
|||
SERVER_STATE originalState = state;
|
||||
try {
|
||||
internalStart();
|
||||
} catch (Throwable t) {
|
||||
ActiveMQServerLogger.LOGGER.failedToStartServer(t);
|
||||
} finally {
|
||||
if (originalState == SERVER_STATE.STOPPED) {
|
||||
networkHealthCheck.setTimeUnit(TimeUnit.MILLISECONDS).setPeriod(configuration.getNetworkCheckPeriod()).
|
||||
|
|
Loading…
Reference in New Issue