git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@906045 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Davies 2010-02-03 13:59:29 +00:00
parent c008426c7a
commit 700f1e45de
1 changed files with 2 additions and 3 deletions

View File

@ -97,17 +97,16 @@ public class ReadOnlyContext implements Context, Serializable {
this.environment = new Hashtable<String, Object>(environment); this.environment = new Hashtable<String, Object>(environment);
} }
this.bindings = new HashMap<String, Object>(); this.bindings = new HashMap<String, Object>();
treeBindings = new HashMap<String, Object>();
if (bindings != null) { if (bindings != null) {
for (Map.Entry<String, Object> binding : bindings.entrySet()) { for (Map.Entry<String, Object> binding : bindings.entrySet()) {
try { try {
internalBind(binding.getKey(), binding.getValue()); internalBind(binding.getKey(), binding.getValue());
} catch (NamingException e) { } catch (Throwable e) {
LOG.error("Failed to bind " + binding.getKey() + "=" + binding.getValue(), e); LOG.error("Failed to bind " + binding.getKey() + "=" + binding.getValue(), e);
} }
} }
} }
treeBindings = new HashMap<String, Object>();
frozen = true; frozen = true;
} }