activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajdav...@apache.org
Subject svn commit: r906045 - /activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java
Date Wed, 03 Feb 2010 13:59:29 GMT
Author: rajdavies
Date: Wed Feb  3 13:59:29 2010
New Revision: 906045

URL: http://svn.apache.org/viewvc?rev=906045&view=rev
Log:
Further fix for https://issues.apache.org/activemq/browse/AMQ-2220

Modified:
    activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java

Modified: activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java
URL: http://svn.apache.org/viewvc/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java?rev=906045&r1=906044&r2=906045&view=diff
==============================================================================
--- activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java
(original)
+++ activemq/trunk/activemq-core/src/main/java/org/apache/activemq/jndi/ReadOnlyContext.java
Wed Feb  3 13:59:29 2010
@@ -97,17 +97,16 @@
             this.environment = new Hashtable<String, Object>(environment);
         }
         this.bindings = new HashMap<String, Object>();
+        treeBindings = new HashMap<String, Object>();
         if (bindings != null) {
             for (Map.Entry<String, Object> binding : bindings.entrySet()) {
                 try {
                     internalBind(binding.getKey(), binding.getValue());
-                } catch (NamingException e) {
+                } catch (Throwable e) {
                     LOG.error("Failed to bind " + binding.getKey() + "=" + binding.getValue(),
e);
                 }
             }
         }
-
-        treeBindings = new HashMap<String, Object>();
         frozen = true;
     }
 



Mime
View raw message