aspose file tools*
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
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