Package org.codehaus.activemq.transport.zeroconf

Examples of org.codehaus.activemq.transport.zeroconf.ZeroconfDiscoveryAgent


        return session.createConsumer(destination);
    }

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

TOP

Related Classes of org.codehaus.activemq.transport.zeroconf.ZeroconfDiscoveryAgent

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.