This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes How to Use Connection Pool in servlets from web server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "How to Use Connection Pool in servlets from web server" Watch "How to Use Connection Pool in servlets from web server" New topic
Author

How to Use Connection Pool in servlets from web server

Thummalashankar Reddy
Greenhorn

Joined: Feb 08, 2007
Posts: 21
Hi Team,

I want to use connection pool from web server in servlets.
I have a little bit idea about Connection pool usage.
But i dont know which one is better.

First
I am creating the Connection pool in the server console and simply by using
ContextFactory i am getting the connection in the servlet

Second

I am creating the Connection pool in the server console and i specified the resource_ref in web.xml ,i am getting the connection in the servlet with out specifying the context factory


which one is better and why?

Thanks & Regards
T. Shankar Reddy
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Use Connection Pool in servlets from web server