summaryrefslogtreecommitdiff
path: root/qpid/java/broker
diff options
context:
space:
mode:
authorAndrew Donald Kennedy <grkvlt@apache.org>2010-07-22 13:02:49 +0000
committerAndrew Donald Kennedy <grkvlt@apache.org>2010-07-22 13:02:49 +0000
commit0046e917a447e051ee5b8aaf509985e465981502 (patch)
treeee647ec73ae05edd7400a1deaccb2230ebbac080 /qpid/java/broker
parent78f71a6f2134e9e60c10ae0ea32a4f9f26dc42f1 (diff)
downloadqpid-python-0046e917a447e051ee5b8aaf509985e465981502.tar.gz
QPID-2679: cache queues that are configured on a per-virtualhost basis
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@966634 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java/broker')
-rw-r--r--qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
index 489a724254..484dd5971d 100644
--- a/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
+++ b/qpid/java/broker/src/main/java/org/apache/qpid/server/queue/SimpleAMQQueue.java
@@ -515,7 +515,12 @@ public class SimpleAMQQueue implements AMQQueue, Subscription.StateListener
break;
}
}
-
+
+ reconfigure();
+ }
+
+ private void reconfigure()
+ {
//Reconfigure the queue for to reflect this new binding.
ConfigurationPlugin config = getVirtualHost().getConfiguration().getQueueConfiguration(this);
@@ -539,6 +544,8 @@ public class SimpleAMQQueue implements AMQQueue, Subscription.StateListener
public void removeBinding(final Binding binding)
{
_bindings.remove(binding);
+
+ reconfigure();
}
public List<Binding> getBindings()