com.sun.ebxml.registry.persistence.rdb
Class ConnectionPool

java.lang.Object
  |
  +--com.sun.ebxml.registry.persistence.rdb.ConnectionPool

public class ConnectionPool
extends java.lang.Object


Constructor Summary
ConnectionPool(java.lang.String name, java.lang.String URL, java.lang.String user, java.lang.String password, int maxConns, int initConns, int timeOut)
           
 
Method Summary
 void freeConnection(java.sql.Connection conn)
           
 java.sql.Connection getConnection()
           
 void release()
          Close all connections in the pool
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectionPool

public ConnectionPool(java.lang.String name,
                      java.lang.String URL,
                      java.lang.String user,
                      java.lang.String password,
                      int maxConns,
                      int initConns,
                      int timeOut)
Parameters:
timeOut - is the time in seconds after this has been elasped but the connection cannot be returned, getConnection() will return SQLException
Method Detail

getConnection

public java.sql.Connection getConnection()
                                  throws java.sql.SQLException
java.sql.SQLException

freeConnection

public void freeConnection(java.sql.Connection conn)
                    throws java.sql.SQLException
java.sql.SQLException

release

public void release()
             throws java.sql.SQLException
Close all connections in the pool

java.sql.SQLException


Copyright © 2001-2003 OASIS. All Rights Reserved.