Package org.codehaus.activemq.transport

Examples of org.codehaus.activemq.transport.NetworkConnector


        if (clusterName.equals(info.getClusterName())){
            clusteredConnection = true;
        }
        if (!remoteNetworkConnector && info.isRemote()){
            try {
                NetworkConnector networkConnector = new NetworkConnector(brokerConnector.getBrokerContainer());
                NetworkChannel networkChannel = new NetworkChannel(networkConnector,brokerConnector.getBrokerContainer(),channel);
                networkConnector.addNetworkChannel(networkChannel);
                brokerConnector.getBrokerContainer().addNetworkConnector(networkConnector);
                networkConnector.start();
                log.info("Started reverse remote channel to " + remoteBrokerName);
                remoteNetworkConnector = true;
            }
            catch (JMSException e) {
                log.error("Failed to create reverse remote channel",e);
View Full Code Here


        if (clusterName.equals(info.getClusterName())) {
            clusteredConnection = true;
        }
        if (!remoteNetworkConnector && info.isRemote()) {
            try {
                final NetworkConnector networkConnector = new NetworkConnector(brokerConnector.getBrokerContainer());
                networkConnector.getThreadPool().execute(new Runnable() {
                    public void run() {
                        try {
                            NetworkChannel networkChannel = new NetworkChannel(networkConnector, brokerConnector
                                    .getBrokerContainer(), channel, info.getBrokerName(), info.getClusterName());
                            networkConnector.addNetworkChannel(networkChannel);
                            brokerConnector.getBrokerContainer().addNetworkConnector(networkConnector);
                            networkConnector.start();
                        }
                        catch (JMSException e) {
                            log.error("Failed to create reverse remote channel", e);
                        }
                    }
View Full Code Here

    public void setNetworkConnectors(List networkConnectors) {
        this.networkConnectors = networkConnectors;
    }

    public NetworkConnector addNetworkConnector(String uri) {
        NetworkConnector connector = addNetworkConnector();
        connector.addNetworkChannel(uri);
        return connector;
    }
View Full Code Here

        connector.addNetworkChannel(uri);
        return connector;
    }

    public NetworkConnector addNetworkConnector() {
        NetworkConnector connector = new NetworkConnector(this);
        addNetworkConnector(connector);
        return connector;
    }
View Full Code Here

    public void setNetworkConnectors(List networkConnectors) {
        this.networkConnectors = networkConnectors;
    }

    public NetworkConnector addNetworkConnector(String uri) {
        NetworkConnector connector = addNetworkConnector();
        connector.addNetworkChannel(uri);
        return connector;
    }
View Full Code Here

        connector.addNetworkChannel(uri);
        return connector;
    }

    public NetworkConnector addNetworkConnector() {
        NetworkConnector connector = new NetworkConnector(this);
        addNetworkConnector(connector);
        return connector;
    }
View Full Code Here

        assertTrue("useAsyncSend", tcpChannel2.isUseAsyncSend());


        List networkConnectors = container.getNetworkConnectors();
        assertEquals("Should have a single network connector", 1, networkConnectors.size());
        NetworkConnector networkConnector = (NetworkConnector) networkConnectors.get(0);

        List networkChannels = networkConnector.getNetworkChannels();
        assertEquals("Should have 2 network channels", 2, networkChannels.size());

        NetworkChannel networkChannel = (NetworkChannel) networkChannels.get(0);
        assertEquals("URL not equal", "tcp://somehost:61616", networkChannel.getUri());
        assertEquals("remoteUserName", "James", networkChannel.getRemoteUserName());
View Full Code Here

    public void setNetworkConnectors(List networkConnectors) {
        this.networkConnectors = networkConnectors;
    }

    public NetworkConnector addNetworkConnector(String uri) {
        NetworkConnector connector = addNetworkConnector();
        connector.addNetworkChannel(uri);
        return connector;
    }
View Full Code Here

        connector.addNetworkChannel(uri);
        return connector;
    }

    public NetworkConnector addNetworkConnector() {
        NetworkConnector connector = new NetworkConnector(this);
        addNetworkConnector(connector);
        return connector;
    }
View Full Code Here

        if (clusterName.equals(info.getClusterName())) {
            clusteredConnection = true;
        }
        if (!remoteNetworkConnector && info.isRemote()) {
            try {
                final NetworkConnector networkConnector = new NetworkConnector(brokerConnector.getBrokerContainer());
                networkConnector.getThreadPool().execute(new Runnable() {
                    public void run() {
                        try {
                            NetworkChannel networkChannel = new NetworkChannel(networkConnector, brokerConnector
                                    .getBrokerContainer(), channel, info.getBrokerName(), info.getClusterName());
                            networkConnector.addNetworkChannel(networkChannel);
                            brokerConnector.getBrokerContainer().addNetworkConnector(networkConnector);
                            networkConnector.start();
                        }
                        catch (JMSException e) {
                            log.error("Failed to create reverse remote channel", e);
                        }
                    }
View Full Code Here

TOP

Related Classes of org.codehaus.activemq.transport.NetworkConnector

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.