commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dain Sundstrom (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (DBCP-221) How to close the connection pool without shutting down the JVM while there are connections being used?
Date Mon, 23 Jul 2007 22:31:31 GMT

     [ https://issues.apache.org/jira/browse/DBCP-221?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dain Sundstrom resolved DBCP-221.
---------------------------------

    Resolution: Fixed
      Assignee: Dain Sundstrom

BasicDataSource.close() now permanently marks the data source as closed.  No new connections
can be obtained from a closed data source.  At close all idle connections are destroyed and
the method returns.  As existing active connections are closed, they are destroyed.

> How to close the connection pool without shutting down the JVM while there are connections
being used?
> ------------------------------------------------------------------------------------------------------
>
>                 Key: DBCP-221
>                 URL: https://issues.apache.org/jira/browse/DBCP-221
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.2
>            Reporter: Bill Liu
>            Assignee: Dain Sundstrom
>             Fix For: 1.3
>
>
> Suppose there are several connections being used now by different servlets. calling the
basicDataSource,close() does not have any impact on the connection pool. I expect that after
these servlet return the connections the pool should be shut down immediately. I also expect
that any more requests to borrow connections from the pool should not be fulfilled. However,
my experiment does not seem to support my expectations. Calling basicDataSource.close() seems
to be ignored while there are connections being used.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message