Re: Datasource and connection

2003-02-03 Thread Lindomar
February 03, 2003 16:25 Subject: RE: Datasource and connection > I'm curious as to why you're asking this question. You should be using the > connection pool according to the documentation provided, because that is how > it is intended to be used. That is... > > void d

RE: Datasource and connection

2003-02-03 Thread Sean Dockery
finally { if(rs != null) rs.close(); if(stmt != null) stmt.close(); if(conn != null) conn.close(); } } What exactly are you THINKING of doing? -Original Message- From: Lindomar [mailto:[EMAIL PROTECTED]] Sent: Monday, February 03, 2003 06:02 To: Tomcat User

Datasource and connection

2003-02-03 Thread Lindomar
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