Package org.jboss.internal.soa.esb.rosetta.pooling.jms

Examples of org.jboss.internal.soa.esb.rosetta.pooling.jms.MockJMSXAConnectionFactory


        int MAX_SESSIONS_PER_CONN = 3;

        jndiEnv.put(JMSEpr.MAX_SESSIONS_PER_CONNECTION, Integer.toString(MAX_SESSIONS_PER_CONN));
        jndiEnv.put(JMSEpr.MAX_XA_SESSIONS_PER_CONNECTION, "1");

        MockJndiContextHandler.objects.put("ConnectionFactory", new MockJMSXAConnectionFactory(MAX_SESSIONS_PER_CONN));
        JmsConnectionPool connPool = new JmsConnectionPool(jndiEnv);
        List<JmsConnectionPool.JmsSessionPool> sessPools = connPool.getSessionPools();

        assertEquals(20, connPool.getMaxSessions());
        assertEquals(MAX_SESSIONS_PER_CONN, connPool.getMaxSessionsPerConnection());
View Full Code Here

TOP

Related Classes of org.jboss.internal.soa.esb.rosetta.pooling.jms.MockJMSXAConnectionFactory

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.