tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Mikusa <dmik...@gopivotal.com>
Subject Re: Release a database connection from pool
Date Mon, 09 Sep 2013 19:50:53 GMT
On Sep 9, 2013, at 2:56 PM, Jose MarĂ­a Zaragoza <demablogia@gmail.com> wrote:

> Hello:
> 
> I've got a simple question.
> I'm using Tomcat 6 & DBCP library ( bit I've got the same question
> with Tomcat JDBC pool )
> 
> 
> My question is:
> 
> when DBCP wants to release a database connection from the pool ( for
> example , if it is idle for more than minEvictableIdleTimeMillis )
> 
> does it just close the TCP socket connection ( FIN packet )?
> If it does, is it enough for remote database server knows that it has
> to release its resources ?

I can't speak for DBCP, but Tomcat's jdbc-pool will call Connection.close() when appropriate.
 I would guess that DBCP does the same thing.

> 
> Or does it do anything more by using propietary driver's commands? I
> asking me if ( some ) database servers need a special command to
> finish a connection/session ?

Not sure what you mean here.  Can you elaborate?

Dan


> 
> 
> Thanks and regards
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message