I think Ishan has done similar when Integrating ntask component into ESB. @Ishan can you share the details?
On Tue, Jul 29, 2014 at 5:04 PM, Sewwandi Perera <[email protected]> wrote: > 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 > > -- Best Regards, Malaka Silva Senior Tech Lead M: +94 777 219 791 Tel : 94 11 214 5345 Fax :94 11 2145300 Skype : malaka.sampath.silva LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 Blog : http://mrmalakasilva.blogspot.com/ WSO2, Inc. lean . enterprise . middleware http://www.wso2.com/ http://www.wso2.com/about/team/malaka-silva/ <http://wso2.com/about/team/malaka-silva/> Save a tree -Conserve nature & Save the world for your future. Print this email only if it is absolutely necessary.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
