public void activated() { if (overrideInVMSecurity) { activeMQServer.getValue().getRemotingService().allowInvmSecurityOverride(new ActiveMQPrincipal(DefaultCredentials.getUsername(), DefaultCredentials.getPassword())); } // ActiveMQ only provides a callback to be notified when ActiveMQ core server is activated. // but the JMS service start must not be completed until the JMSServerManager wrappee is indeed started (and has deployed the JMS resources, etc.). // It is possible that the activation service has already been installed but becomes passive when a backup server has failed over (-> ACTIVE) and failed back (-> PASSIVE) // [WFLY-6178] check if the service container is shutdown to avoid an IllegalStateException if an // ActiveMQ backup server is activated during failover while the WildFly server is shutting down. if (serviceContainer.isShutdown()) { return; } if (activeMQActivationController == null) { activeMQActivationController = serviceContainer.addService(ActiveMQActivationService.getServiceName(serverServiceName), new ActiveMQActivationService()) .setInitialMode(Mode.ACTIVE) .install(); } else { activeMQActivationController.setMode(ACTIVE); } }
public void activated() { if (overrideInVMSecurity) { activeMQServer.getValue().getRemotingService().allowInvmSecurityOverride(new ActiveMQPrincipal(DefaultCredentials.getUsername(), DefaultCredentials.getPassword())); } // ActiveMQ only provides a callback to be notified when ActiveMQ core server is activated. // but the JMS service start must not be completed until the JMSServerManager wrappee is indeed started (and has deployed the JMS resources, etc.). // It is possible that the activation service has already been installed but becomes passive when a backup server has failed over (-> ACTIVE) and failed back (-> PASSIVE) // [WFLY-6178] check if the service container is shutdown to avoid an IllegalStateException if an // ActiveMQ backup server is activated during failover while the WildFly server is shutting down. if (serviceContainer.isShutdown()) { return; } if (activeMQActivationController == null) { activeMQActivationController = serviceContainer.addService(ActiveMQActivationService.getServiceName(serverServiceName), new ActiveMQActivationService()) .setInitialMode(Mode.ACTIVE) .install(); } else { activeMQActivationController.setMode(ACTIVE); } }
if (!container.isShutdown()) {
if (!container.isShutdown()) {
protected void done(final long bootstrapTime, final StabilityStatistics statistics) { futureContainer.done(serviceContainer); if (serviceContainer.isShutdown()) { // Do not print boot statistics because server // received shutdown signal during the boot process. return; } logAdminConsole(); final int active = statistics.getActiveCount(); final int failed = statistics.getFailedCount(); final int lazy = statistics.getLazyCount(); final int never = statistics.getNeverCount(); final int onDemand = statistics.getOnDemandCount(); final int passive = statistics.getPassiveCount(); final int problem = statistics.getProblemsCount(); final int started = statistics.getStartedCount(); if (failed == 0 && problem == 0) { ServerLogger.AS_ROOT_LOGGER.startedClean(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, onDemand + passive + lazy); } else { ServerLogger.AS_ROOT_LOGGER.startedWitErrors(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, failed + problem, onDemand + passive + lazy); } }
private void done(final long bootstrapTime, final StabilityStatistics statistics) { futureContainer.done(serviceContainer); if (serviceContainer.isShutdown()) { // Do not print boot statistics because server // received shutdown signal during the boot process. return; } logAdminConsole(); final int active = statistics.getActiveCount(); final int failed = statistics.getFailedCount(); final int lazy = statistics.getLazyCount(); final int never = statistics.getNeverCount(); final int onDemand = statistics.getOnDemandCount(); final int passive = statistics.getPassiveCount(); final int problem = statistics.getProblemsCount(); final int started = statistics.getStartedCount(); if (failed == 0 && problem == 0) { ServerLogger.AS_ROOT_LOGGER.startedClean(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, onDemand + passive + lazy); createStartupMarker("success", startTime); } else { ServerLogger.AS_ROOT_LOGGER.startedWitErrors(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, failed + problem, onDemand + passive + lazy); createStartupMarker("error", startTime); } }
private void done(final long bootstrapTime, final StabilityStatistics statistics) { futureContainer.done(serviceContainer); if (serviceContainer.isShutdown()) { // Do not print boot statistics because server // received shutdown signal during the boot process. return; } logAdminConsole(); final int active = statistics.getActiveCount(); final int failed = statistics.getFailedCount(); final int lazy = statistics.getLazyCount(); final int never = statistics.getNeverCount(); final int onDemand = statistics.getOnDemandCount(); final int passive = statistics.getPassiveCount(); final int problem = statistics.getProblemsCount(); final int started = statistics.getStartedCount(); if (failed == 0 && problem == 0) { ServerLogger.AS_ROOT_LOGGER.startedClean(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, onDemand + passive + lazy); createStartupMarker("success", startTime); } else { ServerLogger.AS_ROOT_LOGGER.startedWitErrors(prettyVersion, bootstrapTime, started, active + passive + onDemand + never + lazy, failed + problem, onDemand + passive + lazy); createStartupMarker("error", startTime); } }