I have a Vaadin
Component
that registers a listener with some internal system resource inside the
attach()
method, and the de-registers the listener inside its
detach()
method.
If the Vaadin application somehow closes but this listener is never unregistered, then there will be a serious memory leak.
So I want to ensure that this doesn’t happen… which requires verifying the following:
Application.close()
is always invoked when the servlet session is closed or expires- All
Component
s are
detach()
'd whenever an
Application
is closed
Are both of these statements true? I’m pretty sure about the first, but not so sure about the second.
Thanks.