Hi Sergey,
Thanks for replying
On Tuesday 23 June 2009, Sergey Beryozkin wrote:
> Hi,
>
>
> The only way to do it at the moment is to use a per-request resource class
> with @Context ServletContext being one of the constructor
> parameters
I can't do that at the moment. My servlet must have application-scope. I guess
I didn't mention that, mainly because I was frustrated by the time I decided to
post on the list after 3 hours of googling around.
A little background info.
My web services have some memory leaks that I am hunting down. I found the
leaks but in order to plug them I need to run some code during undeploy. I can
use
<listener>
<listener-class>
com.mypackage.CleanupContextListener
</listener-class>
</listener>
but then I don't have access to webservices specific variables and I don't want
to export them through getters and setters and static variables.
The actual point is can a webservice (pojo) be notified on undeploy?
Vassilis