Package org.jboss.resource.connectionmanager

Examples of org.jboss.resource.connectionmanager.InternalManagedConnectionPool


      {
         // Get a connection
         ConnectionListener cl = cm.getManagedConnection(null, null);
         assertTrue("1: Got a null connection!", cl.getManagedConnection() != null);
         assertTrue("1: InternalManagedConnectionPool", cl.getContext() instanceof InternalManagedConnectionPool);
         InternalManagedConnectionPool imcp = (InternalManagedConnectionPool)cl.getContext();
         cm.returnManagedConnection(cl, true);

         // Shutdown the pool in order to trigger the RetryableResourceException
         imcp.shutdown();

         // Get a connection - new internal managed pool is created
         cl = cm.getManagedConnection(null, null);
         assertTrue("2: Got a null connection!", cl.getManagedConnection() != null);
         cm.returnManagedConnection(cl, true);
View Full Code Here

TOP

Related Classes of org.jboss.resource.connectionmanager.InternalManagedConnectionPool

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.