Package org.codehaus.activemq.transport.multicast

Examples of org.codehaus.activemq.transport.multicast.MulticastDiscoveryAgent


        assertEquals("isBackOffMode", true, redeliveryPolicy.isBackOffMode());
        assertEquals("getMaximumRetryCount", 10, redeliveryPolicy.getMaximumRetryCount());

        DiscoveryAgent discoveryAgent = container.getDiscoveryAgent();
        assertTrue("Have a discovery agent: " + discoveryAgent, discoveryAgent instanceof MulticastDiscoveryAgent);
        MulticastDiscoveryAgent multicastAgent = (MulticastDiscoveryAgent) discoveryAgent;
        assertEquals("getKeepAliveTimeout", 1000, multicastAgent.getKeepAliveTimeout());
        assertEquals("getChannelName", "cheese", multicastAgent.getChannelName());
    }
View Full Code Here


    }

    protected ActiveMQConnectionFactory createGenericClusterFactory(String brokerName) throws JMSException {
        BrokerContainer container = new BrokerContainerImpl(brokerName);
     
        MulticastDiscoveryAgent agent = new MulticastDiscoveryAgent(getClass().getName());
        container.setDiscoveryAgent(agent);
        String url = "tcp://localhost:0";
        container.addConnector(url);
        container.addNetworkConnector(new DiscoveryNetworkConnector(container));
        container.start();
View Full Code Here

            if (brokerConnector == null) {
                BrokerContainer container = new BrokerContainerImpl(brokerName, serviceName);
                NetworkConnector networkConnector = null;
                if (doDiscovery) {
                    networkConnector = new DiscoveryNetworkConnector(container);
                    MulticastDiscoveryAgent agent = new MulticastDiscoveryAgent(serviceName);
                    container.setDiscoveryAgent(agent);
                }
                if (peerURIs != null && peerURIs.length() > 0) {
                    URIHelper peers = new URIHelper(peerURIs);
                    networkConnector = createNetworkConnector(container);
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.transport.multicast.MulticastDiscoveryAgent

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.