File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Use Connection Pool in servlets from web server

 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic