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