Package org.activemq.service

Examples of org.activemq.service.MessageContainerManager


        }
    }

    private void startSubscriptions() {
        if (!remote) {
            MessageContainerManager mcm = brokerContainer.getBroker().getPersistentTopicContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, true, true);
            }
            mcm = brokerContainer.getBroker().getTransientTopicContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, true, false);
            }
            mcm = brokerContainer.getBroker().getTransientQueueContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, false, false);
            }
            mcm = brokerContainer.getBroker().getPersistentQueueContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, false, false);
            }
        }
    }
View Full Code Here


            }
        }
    }

    private void startSubscriptions() {
        MessageContainerManager durableTopicMCM = brokerContainer.getBroker().getPersistentTopicContainerManager();
        if (durableTopicMCM != null) {
            Map map = durableTopicMCM.getLocalDestinations();
            startSubscriptions(map, true);
        }
        for (Iterator i = brokerContainer.getBroker().getContainerManagerMap().values().iterator();i.hasNext();) {
            MessageContainerManager mcm = (MessageContainerManager) i.next();
            if (mcm != durableTopicMCM) {
                startSubscriptions(mcm.getLocalDestinations(), false);
            }
        }
    }
View Full Code Here

    public void stop() throws JMSException {
        ExceptionTemplate template = new ExceptionTemplate();

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
        }
        if (transactionManager != null) {
View Full Code Here

    public Context getDestinationContext(Hashtable environment) {
        Map data = new ConcurrentHashMap();
        for (Iterator iter = containerManagerMap.entrySet().iterator(); iter.hasNext();) {
            Map.Entry entry = (Map.Entry) iter.next();
            String name = entry.getKey().toString();
            MessageContainerManager manager = (MessageContainerManager) entry.getValue();
            Context context = new ReadOnlyContext(environment, manager.getDestinations());
            data.put(name, context);
        }
        return new ReadOnlyContext(environment, data);
    }
View Full Code Here

    public void stop() throws JMSException {
        ExceptionTemplate template = new ExceptionTemplate();

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
        }
        if (transactionManager != null) {
View Full Code Here

    public Context getDestinationContext(Hashtable environment) {
        Map data = new ConcurrentHashMap();
        for (Iterator iter = containerManagerMap.entrySet().iterator(); iter.hasNext();) {
            Map.Entry entry = (Map.Entry) iter.next();
            String name = entry.getKey().toString();
            MessageContainerManager manager = (MessageContainerManager) entry.getValue();
            Context context = new ReadOnlyContext(environment, manager.getDestinations());
            data.put(name, context);
        }
        return new ReadOnlyContext(environment, data);
    }
View Full Code Here

        }
    }

    private void startSubscriptions() {
        if (!remote) {
            MessageContainerManager mcm = brokerContainer.getBroker().getPersistentTopicContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, true, true);
            }
            mcm = brokerContainer.getBroker().getTransientTopicContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, true, false);
            }
            mcm = brokerContainer.getBroker().getTransientQueueContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, false, false);
            }
            mcm = brokerContainer.getBroker().getPersistentQueueContainerManager();
            if (mcm != null) {
                Map map = mcm.getLocalDestinations();
                startSubscriptions(map, false, false);
            }
        }
    }
View Full Code Here

            }
        }
    }

    private void startSubscriptions() {
        MessageContainerManager durableTopicMCM = brokerContainer.getBroker().getPersistentTopicContainerManager();
        if (durableTopicMCM != null) {
            Map map = durableTopicMCM.getLocalDestinations();
            startSubscriptions(map, true);
        }
        for (Iterator i = brokerContainer.getBroker().getContainerManagerMap().values().iterator();i.hasNext();) {
            MessageContainerManager mcm = (MessageContainerManager) i.next();
            if (mcm != durableTopicMCM) {
                startSubscriptions(mcm.getLocalDestinations(), false);
            }
        }
    }
View Full Code Here

    public void stop() throws JMSException {
        ExceptionTemplate template = new ExceptionTemplate();

        if (containerManagers != null) {
            for (int i = 0; i < containerManagers.length; i++) {
                final MessageContainerManager containerManager = containerManagers[i];
                template.run(new Callback() {
                    public void execute() throws Throwable {
                        containerManager.stop();
                    }
                });
            }
        }
        if (transactionManager != null) {
View Full Code Here

    public Context getDestinationContext(Hashtable environment) {
        Map data = new ConcurrentHashMap();
        for (Iterator iter = containerManagerMap.entrySet().iterator(); iter.hasNext();) {
            Map.Entry entry = (Map.Entry) iter.next();
            String name = entry.getKey().toString();
            MessageContainerManager manager = (MessageContainerManager) entry.getValue();
            Context context = new ReadOnlyContext(environment, manager.getDestinations());
            data.put(name, context);
        }
        return new ReadOnlyContext(environment, data);
    }
View Full Code Here

TOP

Related Classes of org.activemq.service.MessageContainerManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.