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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply 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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: How to Use Connection Pool in servlets from web server
 
Similar Threads
Creating JavaMail session pool
what connection pooling is better?
Preloaded servlet
connection pool ? (JBoss / DBCP / c3po )
connection pooling