Name

ConnectionPoolDataSource

Synopsis

A factory for PooledConnection objects. Can be registered with a JNDI service or used standalone (for example, in a servlet).

public interface ConnectionPoolDataSource {
// Public Instance Methods
   public abstract int getLoginTimeout(
        ) throws java.sql.SQLException;  
   public abstract PrintWriter getLogWriter(
        ) throws java.sql.SQLException;  
   public abstract PooledConnection getPooledConnection(
        ) throws java.sql.SQLException;  
   public abstract PooledConnection getPooledConnection(
        String user, 
        String password) throws java.sql.SQLException;  
   public abstract void setLoginTimeout(
        int seconds) throws java.sql.SQLException;  
   public abstract void setLogWriter(
        PrintWriter out) throws java.sql.SQLException;  
}

Get Java Enterprise in a Nutshell, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.