activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r631227 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
Date Tue, 26 Feb 2008 14:34:41 GMT
Author: rajdavies
Date: Tue Feb 26 06:34:40 2008
New Revision: 631227

URL: http://svn.apache.org/viewvc?rev=631227&view=rev
Log:
added additional logging around ClassNotFoundException

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java?rev=631227&r1=631226&r2=631227&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/jmx/ManagementContext.java
Tue Feb 26 06:34:40 2008
@@ -373,7 +373,10 @@
             // set the naming port
             Attribute attr = new Attribute("Port", Integer.valueOf(connectorPort));
             mbeanServer.setAttribute(namingServiceObjectName, attr);
-        } catch (Throwable e) {
+        } catch(ClassNotFoundException e) {
+            LOG.debug("Probably not using JRE 1.4: " + e.getLocalizedMessage());
+        }
+        catch (Throwable e) {
             LOG.debug("Failed to create local registry", e);
         }
         // Create the JMXConnectorServer



Mime
View raw message