}
// HornetQ only provides a callback to be notified when HornetQ 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)
if (hornetqActivationController == null) {
hornetqActivationController = serviceContainer.addService(HornetQActivationService.getHornetQActivationServiceName(hqServiceName), new HornetQActivationService())
.setInitialMode(Mode.ACTIVE)
.install();
} else {
hornetqActivationController.setMode(ACTIVE);
}