Package org.apache.activemq.proxy

Examples of org.apache.activemq.proxy.ProxyConnector


     *
     * @return the newly created and added network connector
     * @throws Exception
     */
    public ProxyConnector addProxyConnector(URI bindAddress) throws Exception {
        ProxyConnector connector = new ProxyConnector();
        connector.setBind(bindAddress);
        connector.setRemote(new URI("fanout:multicast://default"));
        return addProxyConnector(connector);
    }
View Full Code Here


     * Sets the network connectors which this broker will use to connect to
     * other brokers in a federated network
     */
    public void setProxyConnectors(List proxyConnectors) throws Exception {
        for (Iterator iter = proxyConnectors.iterator(); iter.hasNext();) {
            ProxyConnector connector = (ProxyConnector) iter.next();
            addProxyConnector(connector);
        }
    }
View Full Code Here

            NetworkConnector connector = iter.next();
            unregisterNetworkConnectorMBean(connector);
            stopper.stop(connector);
        }
        for (Iterator<ProxyConnector> iter = getProxyConnectors().iterator(); iter.hasNext();) {
            ProxyConnector connector = iter.next();
            stopper.stop(connector);
        }
        for (Iterator<JmsConnector> iter = jmsConnectors.iterator(); iter.hasNext();) {
            JmsConnector connector = iter.next();
            stopper.stop(connector);
View Full Code Here

                        connector.setBrokerURL(getDefaultSocketURI().toString());
                    }
                    connector.start();
                }
                for (Iterator<ProxyConnector> iter = getProxyConnectors().iterator(); iter.hasNext();) {
                    ProxyConnector connector = iter.next();
                    connector.start();
                }
                for (Iterator<JmsConnector> iter = jmsConnectors.iterator(); iter.hasNext();) {
                    JmsConnector connector = iter.next();
                    connector.start();
                }
                for (Service service : services) {
                    configureService(service);
                    service.start();
                }
View Full Code Here

        BrokerService service = new BrokerService();
        service.setBrokerName("broker1");
        service.setPersistent(false);

        connector = service.addConnector(getLocalURI());
        proxyConnector=new ProxyConnector();
        proxyConnector.setName("proxy");
        proxyConnector.setBind(new URI(getLocalProxyURI()));
        proxyConnector.setRemote(new URI("fanout:static://"+getRemoteURI()));
        service.addProxyConnector(proxyConnector);
       
View Full Code Here

        BrokerService service = new BrokerService();
        service.setBrokerName("broker2");
        service.setPersistent(false);

        remoteConnector = service.addConnector(getRemoteURI());
        remoteProxyConnector = new ProxyConnector();
        remoteProxyConnector.setName("remoteProxy");
        remoteProxyConnector.setBind(new URI(getRemoteProxyURI()));
        remoteProxyConnector.setRemote(new URI("fanout:static://"+getLocalURI()));
        service.addProxyConnector(remoteProxyConnector);
       
View Full Code Here

     *
     * @return the newly created and added network connector
     * @throws Exception
     */
    public ProxyConnector addProxyConnector(URI bindAddress) throws Exception{
        ProxyConnector connector=new ProxyConnector();
        connector.setBind(bindAddress);
        connector.setRemote(new URI("fanout:multicast://default"));
        return addProxyConnector(connector);
    }
View Full Code Here

            unregisterNetworkConnectorMBean(connector);
            stopper.stop(connector);
        }

        for (Iterator iter = getProxyConnectors().iterator(); iter.hasNext();) {
            ProxyConnector connector = (ProxyConnector) iter.next();
            stopper.stop(connector);
        }
       
        for (Iterator iter = jmsConnectors.iterator(); iter.hasNext();) {
            JmsConnector connector = (JmsConnector) iter.next();
View Full Code Here

     * Sets the network connectors which this broker will use to connect to
     * other brokers in a federated network
     */
    public void setProxyConnectors(List proxyConnectors) throws Exception {
        for (Iterator iter = proxyConnectors.iterator(); iter.hasNext();) {
            ProxyConnector connector = (ProxyConnector) iter.next();
            addProxyConnector(connector);
        }
    }
View Full Code Here

                connector.setDurableDestinations(getBroker().getDurableDestinations());
                connector.start();
            }
           
            for (Iterator iter = getProxyConnectors().iterator(); iter.hasNext();) {
                ProxyConnector connector = (ProxyConnector) iter.next();
                connector.start();
            }
           
            for (Iterator iter = jmsConnectors.iterator(); iter.hasNext();) {
                JmsConnector connector = (JmsConnector) iter.next();
                connector.start();
            }
           
            if (services != null) {
                for (int i = 0; i < services.length; i++) {
                    Service service = services[i];
View Full Code Here

TOP

Related Classes of org.apache.activemq.proxy.ProxyConnector

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.