registryMediator.undeploy();
registryMediator = null;
ejbMethodStatsManager = null;
try {
ejbProbeListener.unregister();
ProbeProviderFactory probeFactory = ejbContainerUtilImpl.getProbeProviderFactory();
probeFactory.unregisterProbeProvider(ejbProbeNotifier);
if (timerProbeListener != null) {
timerProbeListener.unregister();
probeFactory.unregisterProbeProvider(timerProbeNotifier);
}
if (poolProbeListener != null) {
poolProbeListener.unregister();
}
if (cacheProbeListener != null) {
cacheProbeListener.unregister();
if (cacheProbeNotifier != null) {
probeFactory.unregisterProbeProvider(cacheProbeNotifier);
}
}
} catch (Exception ex) {
if (_logger.isLoggable(Level.FINE)) {
_logger.log(Level.FINE, "Error unregistering the ProbeProvider");