1 45 package org.exolab.jms.net.connector; 46 47 import java.util.Map ; 48 49 50 56 public class BasicConnectionManager extends AbstractConnectionManager { 57 58 61 private final ManagedConnectionFactory _factory; 62 63 72 public BasicConnectionManager(ManagedConnectionFactory factory, 73 InvocationHandler handler, 74 Authenticator authenticator, 75 Map properties) 76 throws ResourceException { 77 super(handler, authenticator, properties); 78 addManagedConnectionFactory(factory); 79 _factory = factory; 80 } 81 82 90 public BasicConnectionManager(ManagedConnectionFactory factory, 91 Authenticator authenticator) 92 throws ResourceException { 93 this(factory, new TestInvocationHandler(), authenticator, null); 94 } 95 96 102 public TestConnectionPool getConnectionPool() throws ResourceException { 103 return (TestConnectionPool) getConnectionPool(_factory); 104 } 105 106 116 protected ConnectionPool createConnectionPool( 117 ManagedConnectionFactory factory, InvocationHandler handler, 118 ConnectionFactory resolver) throws ResourceException { 119 return new TestConnectionPool(factory, handler, resolver); 120 } 121 122 } 123 124 | Popular Tags |