Examples of addStaticallyIncludedDestination()


Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

        BrokerService brokerA = createBroker(new URI("broker:(tcp://localhost:61616)/BrokerA?persistent=true&useJmx=false&deleteAllMessagesOnStartup=true"));
        brokerA.setBrokerId("BrokerA");
        BrokerService brokerB = createBroker(new URI("broker:(tcp://localhost:61617)/BrokerB?persistent=true&useJmx=false&deleteAllMessagesOnStartup=true"));
        brokerB.setBrokerId("BrokerB");
        NetworkConnector aTOb = bridgeBrokers(brokers.get("BrokerA").broker, brokers.get("BrokerB").broker, false, 2, true, true);
        aTOb.addStaticallyIncludedDestination(queue);
        NetworkConnector bTOa = bridgeBrokers(brokers.get("BrokerB").broker, brokers.get("BrokerA").broker, false, 2, true, true);
        bTOa.addStaticallyIncludedDestination(queue);

        startAllBrokers();
        waitForBridgeFormation();
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

        BrokerService brokerB = createBroker(new URI("broker:(tcp://localhost:61617)/BrokerB?persistent=true&useJmx=false&deleteAllMessagesOnStartup=true"));
        brokerB.setBrokerId("BrokerB");
        NetworkConnector aTOb = bridgeBrokers(brokers.get("BrokerA").broker, brokers.get("BrokerB").broker, false, 2, true, true);
        aTOb.addStaticallyIncludedDestination(queue);
        NetworkConnector bTOa = bridgeBrokers(brokers.get("BrokerB").broker, brokers.get("BrokerA").broker, false, 2, true, true);
        bTOa.addStaticallyIncludedDestination(queue);

        startAllBrokers();
        waitForBridgeFormation();
       
    }
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

    protected void restartBroker(String brokerName) throws Exception {
        destroyBroker("BrokerA");
        BrokerService broker = createBroker(new URI("broker:(tcp://localhost:61616)/BrokerA?persistent=true&useJmx=false"));
        broker.setBrokerId("BrokerA");
        NetworkConnector aTOb = bridgeBrokers(brokers.get("BrokerA").broker, brokers.get("BrokerB").broker, false, 2, true, true);
        aTOb.addStaticallyIncludedDestination(queue);
        broker.start();
        broker.waitUntilStarted();
        waitForBridgeFormation();
    }
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

        }
    }

    protected NetworkConnector bridgeBrokersWithIncludedDestination(String localBrokerName, String remoteBrokerName, ActiveMQDestination included, ActiveMQDestination excluded) throws Exception {
        NetworkConnector nc = bridgeBrokers(localBrokerName, remoteBrokerName, false, 4, true);
        nc.addStaticallyIncludedDestination(included);
        if (excluded != null) {
            nc.addExcludedDestination(excluded);
        }
        nc.setPrefetchSize(1);
        return nc;
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

      if (con==null) {
        throw new Exception("NetworkConnector Null");
      }
     
      // Configure Network Connection
      con.addStaticallyIncludedDestination(new ActiveMQTopic("nebula.cluster.service.topic"));
      con.setConduitSubscriptions(false);
      con.setDynamicOnly(true)// Do not forward if no consumers
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.registration.queue"));
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.services.facade.queue"));
      con.setNetworkTTL(128);    // Default TTL
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

   
    NetworkConnector con = broker.addNetworkConnector("static://(tcp://excalibur:61616)");
   
    if (con!=null) {
      // con.addExcludedDestination(new ActiveMQQueue(">"));
      con.addStaticallyIncludedDestination(new ActiveMQTopic("nebula.cluster.service.topic"));
      con.setConduitSubscriptions(false);
      con.setDynamicOnly(true);
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.registration.queue"));
      con.addExcludedDestination(new ActiveMQQueue("nebula.cluster.services.facade.queue"));
      con.setNetworkTTL(128);
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

    private NetworkConnector bridge(BrokerService from, BrokerService to) throws Exception {
        TransportConnector toConnector = to.getTransportConnectors().get(0);
        NetworkConnector bridge =
                from.addNetworkConnector("static://" + toConnector.getPublishableConnectString());
        bridge.addStaticallyIncludedDestination(sendQ);
        bridge.addStaticallyIncludedDestination(replyQWildcard);
        return bridge;
    }

    private BrokerService configureBroker(String brokerName) throws Exception {
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

    private NetworkConnector bridge(BrokerService from, BrokerService to) throws Exception {
        TransportConnector toConnector = to.getTransportConnectors().get(0);
        NetworkConnector bridge =
                from.addNetworkConnector("static://" + toConnector.getPublishableConnectString());
        bridge.addStaticallyIncludedDestination(sendQ);
        bridge.addStaticallyIncludedDestination(replyQWildcard);
        return bridge;
    }

    private BrokerService configureBroker(String brokerName) throws Exception {
        BrokerService broker = new BrokerService();
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

        }
    }

    protected NetworkConnector bridgeBrokersWithIncludedDestination(String localBrokerName, String remoteBrokerName, ActiveMQDestination included, ActiveMQDestination excluded) throws Exception {
        NetworkConnector nc = bridgeBrokers(localBrokerName, remoteBrokerName, false, 4, true);
        nc.addStaticallyIncludedDestination(included);
        if (excluded != null) {
            nc.addExcludedDestination(excluded);
        }
        nc.setPrefetchSize(1);
        return nc;
View Full Code Here

Examples of org.apache.activemq.network.NetworkConnector.addStaticallyIncludedDestination()

        // Create queue
        ActiveMQDestination dest = createDestination("TEST.FOO", false);

        // statically include our destination
        networkConnector.addStaticallyIncludedDestination(dest);

        // Run brokers
        startAllBrokers();

        waitForBridgeFormation();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.