diff options
author | Robert Greig <rgreig@apache.org> | 2007-01-24 16:24:43 +0000 |
---|---|---|
committer | Robert Greig <rgreig@apache.org> | 2007-01-24 16:24:43 +0000 |
commit | 60c1fb6b205cd3d778536d9e5ece55aabc139472 (patch) | |
tree | 0a97c0da9b64227cf3197a6c87829ad771f3c421 /java | |
parent | 8e9e60370dba3439ac1f448d300335fce66c3be5 (diff) | |
download | qpid-python-60c1fb6b205cd3d778536d9e5ece55aabc139472.tar.gz |
QPID-50 : Patch supplied by Rob Godfrey - Virtual Host implementation
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@499466 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r-- | java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java index 15bad19e58..9c14be897f 100644 --- a/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java +++ b/java/broker/src/main/java/org/apache/qpid/server/virtualhost/VirtualHost.java @@ -85,7 +85,23 @@ public class VirtualHost } // End of MBean class
+ public VirtualHost(String name, MessageStore store) throws Exception
+ {
+ _name = name;
+
+ _virtualHostMBean = new VirtualHostMBean();
+ _virtualHostMBean.register();
+
+ _queueRegistry = new DefaultQueueRegistry(this);
+ _exchangeFactory = new DefaultExchangeFactory(this);
+ _exchangeRegistry = new DefaultExchangeRegistry(_exchangeFactory);
+ _messageStore = store;
+
+ _brokerMBean = new AMQBrokerManagerMBean(_virtualHostMBean);
+ _brokerMBean.register();
+
+ }
public VirtualHost(String name, Configuration hostConfig) throws Exception
{
_name = name;
|