try {
Engine[] engines = _embedded.getEngines();
for(int h=0; h<engines.length; h++) {
Container engine = (Container) engines[h];
Container[] hosts = engine.findChildren();
for(int i=0; i<hosts.length; i++) {
Container nextHost = hosts[i];
Container [] webModules = nextHost.findChildren();
for (int j=0; j<webModules.length; j++) {
Container nextWebModule = webModules[j];
Context ctx = (Context)nextWebModule;
//this code gets managers
String webAppName = this.getApplicationName(ctx);
Manager nextManager = nextWebModule.getManager();
_logger.finest("webAppName = " + webAppName);
if(nextManager instanceof StandardManager) {
} else {
_logger.log(Level.SEVERE, "MONITORING::" + webAppName + ": " +
((PersistentManagerBase)nextManager).getMonitorAttributeValues() );
}
}
}
}
} catch (Throwable th) {
_logger.log(Level.SEVERE, "Exception thrown", th);
}