tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lindomar" <lindomar.si...@bol.com.br>
Subject Datasource and connection
Date Mon, 03 Feb 2003 13:01:51 GMT
Hi everybody! 

I'm using datasource of tomcat for get connection.
Well, when i do this:
...
DataSource ds = (DataSource)ctx.lookup( "java:comp/env/jdbc/Anything"); 
if (ds != null)
    connection = ds.getConnection(); 
...

In the next time, will give tomcat  to me a new connection or the same?

I think that is same, but i didn't read anything about this.

And when Tomcat close this connection? Only through the timeout?

Thanks in advanced.


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message