incubator-isis-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rmatth...@apache.org
Subject svn commit: r1082956 - /incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java
Date Fri, 18 Mar 2011 15:46:16 GMT
Author: rmatthews
Date: Fri Mar 18 15:46:16 2011
New Revision: 1082956

URL: http://svn.apache.org/viewvc?rev=1082956&view=rev
Log:
Added logging

Modified:
    incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java

Modified: incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java
URL: http://svn.apache.org/viewvc/incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java?rev=1082956&r1=1082955&r2=1082956&view=diff
==============================================================================
--- incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java
(original)
+++ incubator/isis/trunk/core/commons/src/main/java/org/apache/isis/core/commons/config/JmxBeanServer.java
Fri Mar 18 15:46:16 2011
@@ -9,9 +9,13 @@ import javax.management.MalformedObjectN
 import javax.management.NotCompliantMBeanException;
 import javax.management.ObjectName;
 
+import org.apache.log4j.Logger;
+
 
 public class JmxBeanServer {
 
+    private static final Logger LOG = Logger.getLogger(JmxBeanServer.class);
+
     private static JmxBeanServer instance;
     private final MBeanServer server;
 
@@ -22,6 +26,7 @@ public class JmxBeanServer {
     
     public static JmxBeanServer getInstance() {
         if (instance == null) {
+            LOG.info("JMX bean server created");
             instance = new JmxBeanServer();
         }
         return instance;
@@ -31,6 +36,7 @@ public class JmxBeanServer {
         try {
             ObjectName objectName = new ObjectName("Isis:name=" + name);
             server.registerMBean(object, objectName);
+            LOG.info(name + " JMX mbean registered: " + object);
         } catch (MalformedObjectNameException e) {
             throw new RuntimeException(e);
         } catch (NullPointerException e) {



Mime
View raw message