This is a reference to an older message (hey, I'm catching up ;-).
It has been our experience that servlets marked as load at startup with a
specific name are loaded for the life of the server. This is running on JWS (1.x
(I think .2).
Is this in general not true and just a side affect? What is the behaviour of
servlets in this context? There are lots of "work arounds" talked about here,
but is there a "correct" way to ensure that a servlet is not unloaded?
Thanks,
...Duane Murphy
> Date: Sat, 17 Apr 1999 16:50:09 +0300
> From: Cezar Totth <[EMAIL PROTECTED]>
> Subject: Re: about life cycle and connection pool (help!!)
>
> Hi,
>
> Suppose here that you want to be sure that some objects
> (DatabasePool is one of them) will never be destroyed.
> (due to servlet engine's decisions on when is necessary to unload
> - ??upload?? - a servlet)
>
> Probably the safest way is to run a non-daemon thread that keeps referrence
> to these objects, so they never get collected.
>
> In the following example I did not understood why do you don't use directly
> the DbConnectionPool when you need to get/free a connection, but use a
> DbConnectionPoolServlet instead.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
ClueIn - The Internet's FREE Community Service.
Go to http://www.cluein.com and experience the most dynamic way to communicate with
groups of people! You are limited only by your imagination. This service is yours to
use free. Clue in now.
___________________________________________________________________________
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