>>> Pier Fumagalli <[EMAIL PROTECTED]> 31-Jan-01 5:18:14 AM
>>>
>

>>I tried doing this but it does not work.
>>It looks like that the servlets are being loaded
>>by different classloaders or in a different contexts,
>>and the instance of the singleton is not the same
>>for both.

>They _have_ to be in the same context (same web-app),
>and then you can use the ServletContext methods. If
>they're not in the same context, you can't.

Isn't it also possible that a /servlet/ mapping is being used to load
the servlet inside a context?

I don't know about now but engines used to have sandboxed class
loaders for /servlet/ mapped servlets and so even within a context it
might now work.


Nic

___________________________________________________________________________
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