Hi,
I am getting right away. Below the code structure where I am getting.
   try{
      Context ctx = new InitialContext();
      if(ctx == null )
          throw new Exception("No Context found");

      DataSource ds =
(DataSource)ctx.lookup("java:comp/env/jdbc/informixDB");

      if (ds != null) {
        Connection conn = ds.getConnection();
------------------   Here its going to catch section with "connection pool
exhausted error". --------------------------
-
-
Thanks

KD
----- Original Message ----- 
From: "Kwok Peng Tuck" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, December 15, 2003 8:44 PM
Subject: Re: Tomcat 5.0.16 DBCP Connection Pool Exhausted Error


> Isn't removeAbandoned deprecated ? If so is it still usable ?
>
>
> >
> > Hmm... are you getting the error right away or only after a few
requests?
> >
> > Hard to say anything without further information. It is always a good
> > idea to make sure you properly close all Statements, ResultSets anc
> > Connections obtained from the pool.
> > If you ae using commons dbcp, you could also add
> >
> > <parameter><name>logAbandoned</name><value>true</value></parameter>
> > <parameter><name>removeAbandoned</name><value>true</value></parameter>
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to