javax.sql.PooledConnection肯定可以

解决方案 »

  1.   

    sun.jdbc.odbc.ee.PooledConnection
    最好用在orcale 数据库上.
    org.apache.xalan.lib.sql.PooledConnection
    其它的用这个.
      

  2.   

    javax.sql.PooledConnection是接口,是规范,你因该用。别的应该是实现,估计你也不能直接用到,一般通过manager一类的辅助类/工厂类得到。
      

  3.   

    javax.sql 
    Interface PooledConnection
    All Known Subinterfaces: 
    XAConnection --------------------------------------------------------------------------------public interface PooledConnectionA PooledConnection object is a connection object that provides hooks for connection pool management. A PooledConnection object represents a physical connection to a data source. --------------------------------------------------------------------------------Method Summary 
     void addConnectionEventListener(ConnectionEventListener listener) 
               Add an event listener. 
     void close() 
              Close the physical connection. 
     java.sql.Connection getConnection() 
              Create an object handle for this physical connection. 
     void removeConnectionEventListener(ConnectionEventListener listener) 
               Remove an event listener. 
      Method Detail 
    getConnection
    public java.sql.Connection getConnection()
                                      throws java.sql.SQLExceptionCreate an object handle for this physical connection. The object returned is a temporary handle used by application code to refer to a physical connection that is being pooled.Returns:
    a Connection object
    Throws:
    java.sql.SQLException - if a database-access error occurs.--------------------------------------------------------------------------------close
    public void close()
               throws java.sql.SQLExceptionClose the physical connection.Throws:
    java.sql.SQLException - if a database-access error occurs.--------------------------------------------------------------------------------addConnectionEventListener
    public void addConnectionEventListener(ConnectionEventListener listener)Add an event listener.
    --------------------------------------------------------------------------------removeConnectionEventListener
    public void removeConnectionEventListener(ConnectionEventListener listener)Remove an event listener.
      

  4.   

    org.apache.xalan.lib.sql.PooledConnection这个应该是tomcat的poolConnection中使用的吧~
      

  5.   

    知道
    jakarta
    commons-pool
    commons-dbcp