public void setConfigurationContext(ConfigurationContext configCtx) {
this.configCtx = configCtx;
// The following code does the bridging between Axis2 and Synapse load balancing
ClusterManager clusterManager = configCtx.getAxisConfiguration().getClusterManager();
if(clusterManager == null){
String msg = "In order to enable load balancing across an Axis2 cluster, " +
"the cluster entry should be enabled in the axis2.xml file";
log.error(msg);
throw new SynapseException(msg);
}
lbEventHandler = clusterManager.getLoadBalanceEventHandler(lbDomain);
if(lbEventHandler == null){
String msg =
"A LoadBalanceEventHandler has not been specified in the axis2.xml " +
"file for the domain " + lbDomain;
log.error(msg);