use of com.sun.ejb.monitoring.probes.EjbMonitoringProbeProvider in project Payara by payara.
the class SafeProperties method registerEjbMonitoringProbeProvider.
private void registerEjbMonitoringProbeProvider(String appName, String modName, String ejbName) {
// Always create to avoid NPE
try {
ProbeProviderFactory probeFactory = ejbContainerUtilImpl.getProbeProviderFactory();
String invokerId = EjbMonitoringUtils.getInvokerId(appName, modName, ejbName);
ejbProbeNotifier = probeFactory.getProbeProvider(EjbMonitoringProbeProvider.class, invokerId);
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "Got ProbeProvider: " + ejbProbeNotifier.getClass().getName());
}
} catch (Exception ex) {
ejbProbeNotifier = new EjbMonitoringProbeProvider();
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "Error getting the EjbMonitoringProbeProvider");
}
}
}
Aggregations