SuperTenantCarbonContext.getCurrentContext().setTenantId(MultitenantConstants.SUPER_TENANT_ID);
MessageBoxService messageBoxService = MessageBoxServiceBuilder.createMessageBoxService();
context.getBundleContext().registerService(
MessageBoxService.class.getName(), messageBoxService, null);
context.getBundleContext().registerService(Axis2ConfigurationContextObserver.class.getName(),
new Axis2ConfigurationContextObserverImpl(),
null);
} catch (MessageBoxConfigurationException e) {
log.error("MessageBoxService bundle activation is failed.", e);
}
}