This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JDBC and the fly likes using a connection from the pool. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "using a connection from the pool." Watch "using a connection from the pool." New topic
Author

using a connection from the pool.

Jonah Kommu
Greenhorn

Joined: Mar 09, 2011
Posts: 12
How do I know that the application that I am working on uses a connection from the pool of db connection that the application server has created rather than creating a new one?

In the DAO's should I be looking for certain explicit methods?

TIA!
Jonah Kommu
Greenhorn

Joined: Mar 09, 2011
Posts: 12

Or when within an application server that is configured to have a pool of connections, on a getConnection would the connection returned is one of the pooled connections?

thanks in advance !!
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: using a connection from the pool.
 
Similar Threads
regarding the main and System.exit
JavaBean in Servlet?
recreating damaged connection in pool
connection pool ? (JBoss / DBCP / c3po )
JDBC connection pool