try {
String[] locations = ch_query.listRegistryLocations();
System.out.println("Looking up Connection Jndi Name. Name" +
" should be "+POOL_NAME);
if(locations.length == 1){
System.out.println("Locations = "+ locations[0]);
assertEquals("Looked up Registry Location ", POOL_NAME,
locations[0]);
} else{
fail(" Returned wrong number of RegistryLocation");
}
} catch (ConfigException ce) {
ce.printStackTrace();
throw ce;
}