_logger.log(Level.FINE, "[LBAdminMBean] listLBConfigs called" );
try{
ConfigContext ctx = AdminService.getAdminService().getAdminContext()
.getAdminConfigContext();
Domain domain = (Domain)ctx.getRootConfigBean();
LoadBalancers loadbalancers = ((Domain)ctx.getRootConfigBean())
.getLoadBalancers();
if (loadbalancers == null ) {
_logger.log(Level.INFO, _sMgr.getString(
"http_lb_admin.NoLbConfigs"));
return null;
}
String[] names = null;
List<String> namesList = new ArrayList<String>();
LoadBalancer[] lbArray = loadbalancers.getLoadBalancer();
if (lbArray.length == 0) {
_logger.log(Level.INFO, _sMgr.getString(
"http_lb_admin.NoLbConfigs"));
return null;
}