private boolean initialized = false;
protected void activate(ComponentContext context) {
try {
initialized = true;
SynapseEnvironmentService synEnvService =
ConfigHolder.getInstance().getSynapseEnvironmentService(
MultitenantConstants.SUPER_TENANT_ID);
if (synEnvService != null) {
AxisConfiguration axisConf = synEnvService.getConfigurationContext().
getAxisConfiguration();
try {
ProxyObserver proxyObserver = new ProxyObserver(
synEnvService.getSynapseEnvironment().getSynapseConfiguration(),
ConfigHolder.getInstance().getRegistryService().
getConfigSystemRegistry());
ConfigHolder.getInstance().addProxyObserver(
MultitenantConstants.SUPER_TENANT_ID, proxyObserver);
axisConf.addObservers(proxyObserver);
registerDeployer(synEnvService.getConfigurationContext().getAxisConfiguration(),
synEnvService.getSynapseEnvironment());
} catch (ProxyAdminException e) {
log.error("Error while initializing the proxy service observer. " +
"Proxy admin component may be unstable.", e);
}
} else {