A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Connection from DataSource
Joined: Sep 23, 2002
Jul 21, 2004 22:29:00
I have a question regarding the
Connection object from
I have created the connection pooling in WAS 4.06 Application Server thr' administrative consol.
In my ConnectionWraper class, I am searching the data source object thr' JNDI search and then using datasource.getConnection() method to get the JDBC Connection object to perform Database SQLs.
When I complete the SQL execution, I am closing the resultset, statement and connection objects in respective methods.
Now, my question is, when I am closing the connection object with connection.close() method, will this connection object return to the connection pool or not?
Joined: May 26, 2003
Jul 22, 2004 08:09:00
Yes, the connection is then returned to the pool.
How To Ask Questions The Smart Way
Blogging on Certs:
SCEA Part 1
Part 2 & 3
Core Spring 3
TOGAF part 1
I agree. Here's the link:
- it saves me about five hours per week
subject: Connection from DataSource
Design for DBInterface -- Feedback for proposed design
Is this good approach to design DB i/f?
JDBC connection pool
Passing References and Passing Values
jdbc objects in different JVM's
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013