Examples of BrokerConnector


Examples of org.codehaus.activemq.broker.BrokerConnector

            ConsumerInfo info) {
        super(filter, info);
        this.client = client;
        this.dispatchedQueue = dispatchedQueue;
        if (client != null){
            BrokerConnector connector = client.getBrokerConnector();
            if (connector != null){
                BrokerInfo bi = connector.getBrokerInfo();
                if (bi != null){
                    this.brokerName = bi.getBrokerName();
                    this.clusterName = bi.getClusterName();
                }
            }
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

            this.browser = info.isBrowser();
        }
        this.activeClient = client;
        this.activeConsumer = info;
        if (client != null) {
            BrokerConnector brokerConnector = client.getBrokerConnector();
            if (brokerConnector != null) {
                BrokerInfo brokerInfo = brokerConnector.getBrokerInfo();
                if (brokerInfo != null) {
                    brokerName = brokerInfo.getBrokerName();
                    clusterName = brokerInfo.getClusterName();
                }
            }
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

    protected String getLocalConnectionURL() {
        StringBuffer buffer = new StringBuffer("reliable:");
        List list = getTransportConnectors();
        boolean first = true;
        for (Iterator iter = list.iterator(); iter.hasNext();) {
            BrokerConnector brokerConnector = (BrokerConnector) iter.next();
            TransportServerChannel connector = brokerConnector.getServerChannel();
            String url = connector.getUrl();
            if (first) {
                first = false;
            }
            else {
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

            ConsumerInfo info) {
        super(filter, info);
        this.client = client;
        this.dispatchedQueue = dispatchedQueue;
        if (client != null){
            BrokerConnector connector = client.getBrokerConnector();
            if (connector != null){
                BrokerInfo bi = connector.getBrokerInfo();
                if (bi != null){
                    this.brokerName = bi.getBrokerName();
                    this.clusterName = bi.getClusterName();
                }
            }
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

     * @throws JMSException
     */
    protected TransportChannel createTransportChannel(String theURLString) throws JMSException {
        URI uri = createURI(theURLString);
        TransportChannelFactory factory = TransportChannelProvider.getFactory(uri);
        BrokerConnector brokerConnector = null;
        boolean created = false;
        TransportChannel transportChannel = null;
        boolean embedServer = isUseEmbeddedBroker() || factory.requiresEmbeddedBroker();
        if (embedServer) {
            synchronized (this) {
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

        }
        return brokerContainer;
    }

    protected BrokerConnector createBrokerConnector(String url) throws JMSException {
        BrokerConnector brokerConnector;
        brokerConnector = new BrokerConnectorImpl(getContainer(getBrokerName()), url, getWireFormat());
        brokerConnector.start();

        // lets wait a little for the server to startup
        log.info("Embedded JMS Broker has started");
        try {
            Thread.sleep(1000);
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

            this.browser = info.isBrowser();
        }
        this.activeClient = client;
        this.activeConsumer = info;
        if (client != null) {
            BrokerConnector brokerConnector = client.getBrokerConnector();
            if (brokerConnector != null) {
                BrokerInfo brokerInfo = brokerConnector.getBrokerInfo();
                if (brokerInfo != null) {
                    brokerName = brokerInfo.getBrokerName();
                    clusterName = brokerInfo.getClusterName();
                }
            }
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

    public TransientSubscription(Filter filter, ConsumerInfo info, BrokerClient client) {
        this.filter = filter;
        this.consumerInfo = info;
        this.client = client;
        if (client != null) {
            BrokerConnector connector = client.getBrokerConnector();
            if (connector != null) {
                BrokerInfo bi = connector.getBrokerInfo();
                if (bi != null) {
                    this.brokerName = bi.getBrokerName();
                    this.clusterName = bi.getClusterName();
                }
            }
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

     * @throws JMSException
     */
    protected TransportChannel createTransportChannel(String theURLString) throws JMSException {
        URI uri = createURI(theURLString);
        TransportChannelFactory factory = TransportChannelProvider.getFactory(uri);
        BrokerConnector brokerConnector = null;
        boolean created = false;
        TransportChannel transportChannel = null;
        boolean embedServer = isUseEmbeddedBroker() || factory.requiresEmbeddedBroker();
        if (embedServer) {
            synchronized (this) {
View Full Code Here

Examples of org.codehaus.activemq.broker.BrokerConnector

        }
        return brokerContainer;
    }

    protected BrokerConnector createBrokerConnector(String url) throws JMSException {
        BrokerConnector brokerConnector;
        brokerConnector = new BrokerConnectorImpl(getContainer(getBrokerName()), url, getWireFormat());
        brokerConnector.start();

        // lets wait a little for the server to startup
        log.info("Embedded JMS Broker has started");
        try {
            Thread.sleep(1000);
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.