Examples of ActiveMQXAConnectionFactory


Examples of org.apache.activemq.ActiveMQXAConnectionFactory

    }

    public void setBrokerUrl(String url) {
        if (brokerUrl == null || !brokerUrl.equals(url)) {
            brokerUrl = url;
            setConnectionFactory(new ActiveMQXAConnectionFactory(brokerUrl));
        }
    }
View Full Code Here

Examples of org.apache.activemq.ActiveMQXAConnectionFactory

  @Primary
  @Bean(name = { "jmsConnectionFactory", "xaJmsConnectionFactory" })
  public ConnectionFactory jmsConnectionFactory(ActiveMQProperties properties,
      XAConnectionFactoryWrapper wrapper) throws Exception {
    ActiveMQXAConnectionFactory connectionFactory = new ActiveMQConnectionFactoryFactory(
        properties).createConnectionFactory(ActiveMQXAConnectionFactory.class);
    return wrapper.wrapConnectionFactory(connectionFactory);
  }
View Full Code Here

Examples of org.apache.activemq.ActiveMQXAConnectionFactory

        } catch (XAException e) {
            throw new IllegalStateException(e.getMessage(), e);
        }
        bus = BusFactory.getDefaultBus();
        registerTransactionManager();
        ActiveMQXAConnectionFactory cf1 = new ActiveMQXAConnectionFactory(brokerURI);
        cf1.setRedeliveryPolicy(redeliveryPolicy());
        JcaPooledConnectionFactory pcf = new JcaPooledConnectionFactory();
        pcf.setTransactionManager(transactionManager);
        pcf.setConnectionFactory(cf1);
        cf = pcf;
        cff = new ConnectionFactoryFeature(pcf);
View Full Code Here

Examples of org.codehaus.activemq.ActiveMQXAConnectionFactory

     * @throws JMSException
     */
    public static Connection makeConnection(ConnectionFactory connectionFactory, ActiveMQConnectionRequestInfo info) throws JMSException {
        if (connectionFactory == null) {
            if (info.isXa()) {
                connectionFactory = new ActiveMQXAConnectionFactory(info.getServerUrl());
            }
            else {
                connectionFactory = new org.codehaus.activemq.ActiveMQConnectionFactory(info.getServerUrl());
            }
        }
View Full Code Here

Examples of org.codehaus.activemq.ActiveMQXAConnectionFactory

        else if (name.equals(getTopicConnectionFactory())) {
            result = new ActiveMQConnectionFactory(brokerURL);
            _directory.put(name, result);
        }
        else if (name.equals(getXAQueueConnectionFactory())) {
            result = new ActiveMQXAConnectionFactory(brokerURL);
            _directory.put(name, result);
        }
        else if (name.equals(getXATopicConnectionFactory())) {
            result = new ActiveMQXAConnectionFactory(brokerURL);
            _directory.put(name, result);
        }
        return result;
    }
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.