status.add("WARN: Ignoring pool with no JNDI name");
}
}
private static void addXADataSource(Element root, List status, List results) {
XADatabasePool pool = new XADatabasePool();
addDataSourceCommon(root, pool, status);
pool.setXaDataSourceClass(getChildText(root, "xa-datasource-class"));
NodeList list = root.getElementsByTagName("xa-datasource-property");
for(int i=0; i<list.getLength(); i++) {
Element prop = (Element) list.item(i);
pool.getProperties().setProperty(prop.getAttribute("name"), getText(prop));
}
if(pool.getName() != null && !pool.getName().equals("")) {
results.add(pool);
} else {
status.add("WARN: Ignoring pool with no JNDI name");
}
}