This commit is contained in:
wenshao
2012-08-21 16:01:14 +08:00
parent 5265880590
commit ff9c9b9776
2 changed files with 45 additions and 7 deletions
@@ -141,6 +141,8 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
} catch (JMException ex) {
LOG.error("register mbean error", ex);
}
DruidStatService.registerMBean();
}
ObjectName objectName = null;
@@ -201,6 +203,8 @@ public class DruidDataSourceStatManager implements DruidDataSourceStatManagerMBe
} catch (JMException ex) {
LOG.error("unregister mbean error", ex);
}
DruidStatService.unregisterMBean();
}
}
}