Package org.apache.geronimo.connector.outbound.connectiontracking

Examples of org.apache.geronimo.connector.outbound.connectiontracking.DefaultInterceptor


        transactionContext.commit();
        assertNotNull("Should be committed", mockXAResource.getCommitted());
    }

    public void testUserTransactionEnlistingExistingConnections() throws Throwable {
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection.getManagedConnection();
                userTransaction.begin();
                MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();
View Full Code Here


        }
    }

    public void testUnshareableConnections() throws Throwable {
        unshareableResources.add(name);
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection1 = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection1.getManagedConnection();
                MockConnection mockConnection2 = (MockConnection) connectionFactory.getConnection();
                //the 2 cx are for the same RM, so tm will call commit only one one (the first)
View Full Code Here

        transactionManager.commit();
        assertNotNull("Should be committed", mockXAResource.getCommitted());
    }

    public void testUserTransactionEnlistingExistingConnections() throws Throwable {
        mockComponent = new DefaultInterceptor() {
            public Object invoke(ConnectorInstanceContext newConnectorInstanceContext) throws Throwable {
                ConnectionExtension mockConnection = (ConnectionExtension) connectionFactory.getConnection();
                mockManagedConnection = mockConnection.getManagedConnection();
                userTransaction.begin();
                MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();
View Full Code Here

        }
    }

    public void testUnshareableConnections() throws Throwable {
        unshareableResources.add(name);
        mockComponent = new DefaultInterceptor() {
            public Object invoke(ConnectorInstanceContext newConnectorInstanceContext) throws Throwable {
                ConnectionExtension mockConnection1 = (ConnectionExtension) connectionFactory.getConnection();
                mockManagedConnection = mockConnection1.getManagedConnection();
                ConnectionExtension mockConnection2 = (ConnectionExtension) connectionFactory.getConnection();
                //the 2 cx are for the same RM, so tm will call commit only one one (the first)
View Full Code Here

        transactionContext.commit();
        assertNotNull("Should be committed", mockXAResource.getCommitted());
    }

    public void testUserTransactionEnlistingExistingConnections() throws Throwable {
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection.getManagedConnection();
                userTransaction.begin();
                MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();
View Full Code Here

        }
    }

    public void testUnshareableConnections() throws Throwable {
        unshareableResources.add(name);
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection1 = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection1.getManagedConnection();
                MockConnection mockConnection2 = (MockConnection) connectionFactory.getConnection();
                //the 2 cx are for the same RM, so tm will call commit only one one (the first)
View Full Code Here

        transactionManager.commit();
        assertNotNull("Should be committed", mockXAResource.getCommitted());
    }

    public void testUserTransactionEnlistingExistingConnections() throws Throwable {
        mockComponent = new DefaultInterceptor() {
            public Object invoke(ConnectorInstanceContext newConnectorInstanceContext) throws Throwable {
                MockConnection mockConnection = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection.getManagedConnection();
                userTransaction.begin();
                MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();
View Full Code Here

        }
    }

    public void testUnshareableConnections() throws Throwable {
        unshareableResources.add(name);
        mockComponent = new DefaultInterceptor() {
            public Object invoke(ConnectorInstanceContext newConnectorInstanceContext) throws Throwable {
                MockConnection mockConnection1 = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection1.getManagedConnection();
                MockConnection mockConnection2 = (MockConnection) connectionFactory.getConnection();
                //the 2 cx are for the same RM, so tm will call commit only one one (the first)
View Full Code Here

        transactionContext.commit();
        assertNotNull("Should be committed", mockXAResource.getCommitted());
    }

    public void testUserTransactionEnlistingExistingConnections() throws Throwable {
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection.getManagedConnection();
                userTransaction.begin();
                MockXAResource mockXAResource = (MockXAResource) mockManagedConnection.getXAResource();
View Full Code Here

        }
    }

    public void testUnshareableConnections() throws Throwable {
        unshareableResources.add(name);
        mockComponent = new DefaultInterceptor() {
            public Object invoke(InstanceContext newInstanceContext) throws Throwable {
                MockConnection mockConnection1 = (MockConnection) connectionFactory.getConnection();
                mockManagedConnection = mockConnection1.getManagedConnection();
                MockConnection mockConnection2 = (MockConnection) connectionFactory.getConnection();
                //the 2 cx are for the same RM, so tm will call commit only one one (the first)
View Full Code Here

TOP

Related Classes of org.apache.geronimo.connector.outbound.connectiontracking.DefaultInterceptor

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.