String appRefXPath = ServerXPathHelper.getServerIdXpath(getInstanceName())
+ ServerXPathHelper.XPATH_SEPARATOR
+ ServerTags.APPLICATION_REF + "[@"
+ ServerTags.REF + "='" + standAloneModuleId + "']";
ApplicationRef appRef = (ApplicationRef) ConfigBeansFactory.getConfigBeanByXPath(
getConfigContext(), appRefXPath);
// if no virtual server, pick up first
if (appRef.getVirtualServers()!=null) {
return getHostAndPort(securityEnabled);
}
// Get the list of virtual servers from the Application Ref
String appRefvs = null;
List vsList = StringUtils.parseStringList(appRef.getVirtualServers(), " ,");
if (vsList==null) {
return getHostAndPort(securityEnabled);
}
ListIterator vsListIter = vsList.listIterator();