Package org.mule.transport.jms.xa

Examples of org.mule.transport.jms.xa.ConnectionFactoryWrapper


        assertNotNull(c);
       
        ConnectionFactory cf = c.getConnectionFactory();
        assertTrue(cf instanceof ActiveMQXAConnectionFactory);

        ConnectionFactoryWrapper wrapper = new ConnectionFactoryWrapper(cf);
        // can be a proxy
        Connection connection = wrapper.createConnection();
        assertNotNull(connection);
        assertTrue(Proxy.isProxyClass(connection.getClass()));

        try
        {
View Full Code Here


        try
        {
            if (cf instanceof XAConnectionFactory && muleContext.getTransactionManager() != null)
            {
                cf = new ConnectionFactoryWrapper(cf, sameRMOverrideValue);
            }
        }
        catch (Exception e)
        {
            throw new InitialisationException(e, this);
View Full Code Here

        assertNotNull(c);
       
        ConnectionFactory cf = c.getConnectionFactory();
        assertTrue(cf instanceof ActiveMQXAConnectionFactory);

        ConnectionFactoryWrapper wrapper = new ConnectionFactoryWrapper(cf);
        // can be a proxy
        Connection connection = wrapper.createConnection();
        assertNotNull(connection);
        assertTrue(Proxy.isProxyClass(connection.getClass()));

        try
        {
View Full Code Here

    protected ConnectionFactory doDecorate(ConnectionFactory connectionFactory, JmsConnector jmsConnector, MuleContext muleContext)
    {
        ConnectionFactory wrappedConnectionFactory = connectionFactory;
        if (isXaConnectionFactory(connectionFactory) && muleContext.getTransactionManager() != null)
        {
            wrappedConnectionFactory = new ConnectionFactoryWrapper(connectionFactory, jmsConnector.getSameRMOverrideValue());
        }
        return wrappedConnectionFactory;
    }
View Full Code Here

TOP

Related Classes of org.mule.transport.jms.xa.ConnectionFactoryWrapper

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.