Skip to main content

[webtier] Re: Stumped by ServletContext and ServletContextListener behavior

1 reply [Last post]
Anonymous

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Jan Luehe

On 03/11/09 01:02 PM, glassfish@javadesktop.org wrote:
> Hi guys,
>
> I am trying to create a service that our other servlets will use. Its supposed to set itself up on ContextInitialized and clean up on ContextDestroyed.
>
> My problem is that a key attribute I store in the ServletContext and need toa ccess for celanup is VANISHING from the attributes before ContextDestroyed get called :(
>
> I am *positive* I am not resetting it myself. Where is it going and why???
>
> This has been immensely frustrating to try to debug.
>
> The code is below if anyone wants to look at it
>

This was fixed in GlassFish v3_b29 as part of

https://glassfish.dev.java.net/issues/show_bug.cgi?id=6442

Invoke contextDestroyed() of ServletContextListener *before* clearing any
context attributes.

HTH,

Jan

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net