I know conn.close() returns the Connection to the pool, but does ds.getConnection() get a new Connection or simply get one from the pool. If so, at what point is a new Connection made?
Who dares, wins! (SAS motto)
stu derby
Ranch Hand
Joined: Dec 15, 2005
Posts: 333
posted
0
The pool decides whether to reuse an existing connection or create a new one. It does so based on the way the pooling code was written, and the way you configure it.
kwame Iwegbue
Ranch Hand
Joined: Sep 02, 2000
Posts: 197
posted
0
Thanks stu..
the code above doesn't seem to be working for me though!