Package org.apache.activemq.state

Examples of org.apache.activemq.state.ConnectionState


        Field statesField = ConnectionStateTracker.class.getDeclaredField("connectionStates");
        statesField.setAccessible(true);
        ConcurrentHashMap<ConnectionId, ConnectionState> states =
                (ConcurrentHashMap<ConnectionId, ConnectionState>) statesField.get(stateTracker);

        ConnectionState state = states.get(connection.getConnectionInfo().getConnectionId());

        Collection<TransactionState> transactionStates = state.getTransactionStates();

        connection.stop();
        connection.close();

        assertEquals("Transaction states not cleaned up", 0,transactionStates.size());
View Full Code Here


        Field statesField = ConnectionStateTracker.class.getDeclaredField("connectionStates");
        statesField.setAccessible(true);
        ConcurrentHashMap<ConnectionId, ConnectionState> states =
                (ConcurrentHashMap<ConnectionId, ConnectionState>) statesField.get(stateTracker);

        ConnectionState state = states.get(connection.getConnectionInfo().getConnectionId());

        Collection<TransactionState> transactionStates = state.getTransactionStates();

        connection.stop();
        connection.close();

        Assert.assertEquals("Transaction states not cleaned up", 0,transactionStates.size());
View Full Code Here

TOP

Related Classes of org.apache.activemq.state.ConnectionState

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.