BasicDAOImplementation

"Geeta Ramani" <[email protected]>
Newsgroups gmane.comp.java.mvc.devel
Organization Central Maine Power Company
Message-ID <[email protected]>
I have a question regarding the update() method in
org.apache.basicWebLib.DAO.BasicDAOImplementation.java. Notice how at
the end of the method, in the "finally" block, the connection is closed?
How come instead we don't release this connection back to the pool?

In fact I checked the API for
org.apache.commons.dbcp.jdbc2pool.Jdbc2PoolDataSource, and there doesn't
seem to *be* any method which would release the connection back to the
pool... So I guess my real question is "why isn't there a
releaseConnection(Connection) method in this class"?

Thanks,
Geeta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.