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.

Reply via email to