You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Bill Liu (JIRA)" <ji...@apache.org> on 2007/05/11 01:57:15 UTC
[jira] Created: (DBCP-219) how to kill a connection from the
connection pool without shutting down the connection pool
how to kill a connection from the connection pool without shutting down the connection pool
-------------------------------------------------------------------------------------------
Key: DBCP-219
URL: https://issues.apache.org/jira/browse/DBCP-219
Project: Commons Dbcp
Issue Type: Bug
Affects Versions: 1.2.2
Environment: Windows, Unix
Reporter: Bill Liu
Hi:
This is really not a bug but probably a desired feature and something I am not aware of.
We use the Apache connection pool in a Servlet environment. We need the feature to kill or close a connection forcefully when it is being used by a servlet. The reason can be various: an evil servlet that holds a connection forever, db issue, network issue, etc. How can we do that? I notice that datasource.getConnection() always returns a new connection. How do we keep track of connections that are being used so we can close them if needed? Currently we can only kill one at the database side by a DBA.
Should we write a a util to keep track of connection objects that are borrowed by clients?
--
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
[jira] Updated: (DBCP-219) how to kill a connection from the
connection pool without shutting down the connection pool
Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/DBCP-219?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Phil Steitz updated DBCP-219:
-----------------------------
Fix Version/s: 1.4
> how to kill a connection from the connection pool without shutting down the connection pool
> -------------------------------------------------------------------------------------------
>
> Key: DBCP-219
> URL: https://issues.apache.org/jira/browse/DBCP-219
> Project: Commons Dbcp
> Issue Type: Bug
> Affects Versions: 1.2.2
> Environment: Windows, Unix
> Reporter: Bill Liu
> Fix For: 1.4
>
>
> Hi:
> This is really not a bug but probably a desired feature and something I am not aware of.
> We use the Apache connection pool in a Servlet environment. We need the feature to kill or close a connection forcefully when it is being used by a servlet. The reason can be various: an evil servlet that holds a connection forever, db issue, network issue, etc. How can we do that? I notice that datasource.getConnection() always returns a new connection. How do we keep track of connections that are being used so we can close them if needed? Currently we can only kill one at the database side by a DBA.
> Should we write a a util to keep track of connection objects that are borrowed by clients?
--
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: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org
RE: [jira] Created: (DBCP-219) how to kill a connection from the connection pool without shutting down the connection pool
Posted by Srinath Narasimhan <sn...@nuviewinc.com>.
See if this can help you
https://issues.apache.org/jira/browse/DBCP-61
-----Original Message-----
From: Bill Liu (JIRA) [mailto:jira@apache.org]
Sent: Thursday, May 10, 2007 7:57 PM
To: commons-dev@jakarta.apache.org
Subject: [jira] Created: (DBCP-219) how to kill a connection from the
connection pool without shutting down the connection pool
how to kill a connection from the connection pool without shutting down
the connection pool
------------------------------------------------------------------------
-------------------
Key: DBCP-219
URL: https://issues.apache.org/jira/browse/DBCP-219
Project: Commons Dbcp
Issue Type: Bug
Affects Versions: 1.2.2
Environment: Windows, Unix
Reporter: Bill Liu
Hi:
This is really not a bug but probably a desired feature and something I
am not aware of.
We use the Apache connection pool in a Servlet environment. We need the
feature to kill or close a connection forcefully when it is being used
by a servlet. The reason can be various: an evil servlet that holds a
connection forever, db issue, network issue, etc. How can we do that? I
notice that datasource.getConnection() always returns a new connection.
How do we keep track of connections that are being used so we can close
them if needed? Currently we can only kill one at the database side by a
DBA.
Should we write a a util to keep track of connection objects that are
borrowed by clients?
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org