Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to Use Connection Pool in servlets from web server

 
Thummalashankar Reddy
Greenhorn
Posts: 21
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic