First you say you want 5 maximum connections then you hit reload to make
servlets grab all those connections and then you complain that more aren't made
up?  Hellooo!!!

If you want more connections to be available to your servlet then increase the
number but don't complain about correct behaviour.

dave.

Telmo Sa wrote:

> Hello!
> After altering the init method things started to work, but i still get a
> strange behaviour.
> I am using an instantDB just for testing, Apache 1.3 and JRun eval version.
> When i really start hitting the DB, (repeatedly hitting reload button)
> things wind up getting stopped.
> I don't know why!
> Here's an excerpt of my log file when this happens:
>
> Starting DbConnectionBroker Version 1.0.8:
> dbDriver = jdbc.idbDriver
> dbServer = jdbc:idb:c:\program files\apache
> group\apache\htdocs\agenda\agenda.prp
> dbLogin =
> log file = c:\program files\apache
> group\apache\htdocs\agenda\jx_GlobalPool.log
> minconnections = 2
> maxconnections = 5
> Total refresh interval = 0.5 days
> -----------------------------------------
> Tue Nov 23 17:39:13 GMT 1999  Opening connection 0
> jdbc.idbConnection@c5b77f47:
> Tue Nov 23 17:39:13 GMT 1999  Opening connection 1
> jdbc.idbConnection@c1e77f47:
> Tue Nov 23 18:01:53 GMT 1999  Opening connection 2
> jdbc.idbConnection@22d37f44:
> -----> Connections Exhausted!  Will wait and try again in loop 1
> Tue Nov 23 18:29:34 GMT 1999  Opening connection 3
> jdbc.idbConnection@6cbb7f47:
> -----> Connections Exhausted!  Will wait and try again in loop 1
> Tue Nov 23 18:29:36 GMT 1999  Opening connection 4
> jdbc.idbConnection@70db7f47:
> -----> Connections Exhausted!  Will wait and try again in loop 2
>
> Could you please help me?
>
> Thank you!
>         Telmo
>
> > -----Original Message-----
> > From: prasad charasala [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, November 23, 1999 9:37 PM
> > To:   [EMAIL PROTECTED]
> > Subject:      Re: Any one using javaexchange.com global con pool
> >
> > --- Telmo_Sa <[EMAIL PROTECTED]> wrote:
> > > Hello!
> > > I have been experiencing the global con broker.
> > > I have a question that you maybe can answer.
> > > From the reading of http://javaexchange.com/ i
> > > understood that i can have
> > > many diferent servlets using the same conn pool
> > > simply by extending
> > > HttpServletJXGB.java.
> > > My question is. When a new servlet is accessed the
> > > servlet engine runs its
> > > init method so my guess is that every time i run a
> > > new servlet i am
> > > re-initializing the con pool.
> >
> > This is not true, you have to check the statement
> >  if(myBroker == null) in the init() method of
> > HttpServletJXGB. it prevents re-initialization of
> > connection pool.
> >
> >
> > > After that, my other servlet ( an older servlet
> > > already loaded) loses the
> > > reference to the originial con pool.
> > > Are things like this or am i doing something very
> > > wrong?
> > > The behavior i am having is the following:
> > >         I start servlet x using global con pool
> > > myBroker. It works.
> > >         I start servlet y wanting to use the same
> > > con pool. Everything
> > > hangs.
> >
> > I have been using it, without any changes, it works
> > fine.
> >
> > Prasad
> > [EMAIL PROTECTED]
> >
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Bid and sell for free at http://auctions.yahoo.com
> >
> > __________________________________________________________________________
> > _
> > To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> > body
> > of the message "signoff SERVLET-INTEREST".
> >
> > Archives: http://archives.java.sun.com/archives/servlet-interest.html
> > Resources: http://java.sun.com/products/servlet/external-resources.html
> > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

--
David Mossakowski              [EMAIL PROTECTED]
Programmer                           212.310.7275
Instinet Corporation

"I don't sit idly by, I'm planning a big surprise"

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to