On Sep 9, 2013, at 2:56 PM, Jose María Zaragoza <demablo...@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-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


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

Reply via email to