mirror of https://github.com/apache/activemq.git
Further fix for https://issues.apache.org/activemq/browse/AMQ-2220
git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c008426c7a
commit
700f1e45de
|
@ -97,17 +97,16 @@ public class ReadOnlyContext implements Context, Serializable {
|
|||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue