David Finch wrote:

> Hi all,
>    I'm having trouble with what should be a simple feature: sharing a static 
>variable between two instances of the same servlet class.
> [snip]
>

In some servlet engines, separate servlet instances are run in separate class loaders 
-- and the static variables are not shared in this case.  If you really want to share 
the variable, you should consider using a servlet context attribute.  (Even this 
doesn't work if your servlets are distributed across multiple JVMs -- then you have to 
use some external mechanism to share information).

>
> David Finch.

Craig McClanahan

___________________________________________________________________________
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