--- Telmo_Sá <[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

Reply via email to