DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2
  1. #1
    Join Date
    Dec 2005

    Connection Pooling - Passing your pool to the application

    ***** My environment *****
    JDK - 1.5
    App Server - Tomcat 5.5
    Database - Sysbase
    Framework - Struts

    ***** My question *****
    When my application starts we kickoff a Startup Servlet that extends HttpServlet. In this servlet I initialize the DB Pool with a min of 5 connections. This creates a pool that stores the connections. So the only use of our servlet is to init the application.

    How do you pass the pool object to the rest of the application? What is the best way to handle this? Please help. . .

  2. #2
    Join Date
    Oct 2005
    New Jersey
    This is not the way you should use connection pool. You should configure a JNDI datasource in Tomcat. It will be available to all the applications.
    Happiness is good health and a bad memory.

Similar Threads

  1. Database connection pooling
    By igmos in forum ASP.NET
    Replies: 1
    Last Post: 05-16-2003, 09:48 AM
  2. Connection pooling in .Net environment
    By Nadine Grenier in forum .NET
    Replies: 1
    Last Post: 05-29-2002, 01:13 PM
  3. Connection Pooling...
    By Ellen Miles in forum Java
    Replies: 0
    Last Post: 12-20-2000, 07:53 PM
  4. Connection Pooling - MTS
    By Sivakumar in forum authorevents.mitchell
    Replies: 0
    Last Post: 10-18-2000, 02:32 AM
  5. Replies: 0
    Last Post: 03-27-2000, 11:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center
Latest Articles
Questions? Contact us.
Web Development
Latest Tips
Open Source

   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center