connection timeout limit?
- From: "Dishan" <dishan@xxxxxxxxx>
- Date: 20 Feb 2007 21:27:12 -0800
Hi All,
What is the best method the close the dead database connection(oracle)
while connection time is too long.?
I have a database connection pool and having some probleam (hang)
while closing expired database connection in my web site(using
tomcat5).
Is there anyway to set connection timeout period for the connection
that will automatically close the connection in my souce code?
void expire( Connection connection )
{
try
{
logger.info( "closing JDBC connection...");
connection.close(); // *** hanging here
logger.info( "JDBC connection closed successfully!");
}
catch( SQLException e )
{
e.printStackTrace();
}
}
Thanks in advance.
-Dish
.
- Follow-Ups:
- Re: connection timeout limit?
- From: joeNOSPAM@xxxxxxx
- Re: connection timeout limit?
- From: David Harper
- Re: connection timeout limit?
- Prev by Date: Re: rolling back transactions with MS SQL Server?
- Next by Date: Re: connection timeout limit?
- Previous by thread: rolling back transactions with MS SQL Server?
- Next by thread: Re: connection timeout limit?
- Index(es):
Relevant Pages
|
|