Gets the jndi entries from the application server's naming
service given a particular context/subcontext.
ArrayList names = new ArrayList();
NamingEnumeration ee = null;
if(contextPath == null) { contextPath = ""; }
try {
ee = context.list(contextPath);
} catch(NameNotFoundException e) {
String msg = sm.getString("monitor.jndi.context_notfound",
new Object[]{contextPath});
logger.log(Level.WARNING, msg);
NamingException ne = new NamingException(msg);
//ne.initCause(e);
System.out.println("Exception print: " + ne);
throw ne;
}
names = toNameClassPairArray(ee);
return names;