org.jboss.soa.esb.connection
Class ConnectionPoolFactory

java.lang.Object
  extended by org.jboss.soa.esb.connection.ConnectionPoolFactory

public class ConnectionPoolFactory
extends java.lang.Object

Factory class which creates a connection pool. The factory also creates a JVM Shutdown hook which is called when JVM is shutting down which indirectly calls @link ConnectionPool#releasePool

Author:
MohitK Date: Jul 19, 2006

Constructor Summary
ConnectionPoolFactory()
           
 
Method Summary
static ConnectionPool createPool(ConnectionProperties connProperties)
          Factory method to create and return a connection pool based on the property set for the connection pool implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPoolFactory

public ConnectionPoolFactory()
Method Detail

createPool

public static ConnectionPool createPool(ConnectionProperties connProperties)
                                 throws ConnectionException
Factory method to create and return a connection pool based on the property set for the connection pool implementation. The factory also registers a shut down hook with the JVM so that the connections in the pool are closed and released with causing connections leaks.

Parameters:
connProperties - Properties for the connection pool
Returns:
Connection Pool
Throws:
ConnectionException