Hi,
I want to read axis2.xml to find whether clustering is enabled in the pack.
To do that, I use config.context.service, which is exposed as an OSGI
service, and do following logic.
protected void
setConfigurationContextService(ConfigurationContextService
configurationContextService) {
ClusteringAgent agent =
configurationContextService.getServerConfigContext().getAxisConfiguration().getClusteringAgent();
this.isClusteringEnabled = (agent != null);
}
Basically, if ClusteringAgent is null, I consider it as a standalone
deployment.
Is this the correct approach?
Thanks and Regards,
Sewwandi
--
Sewwandi Perera
Software Engineer
WSO2 Inc.; http://wso2.com
lean.enterprise.middleware
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev