How does Spring know when to call the "destory" method in an area bound to a session / request bean (in other words, how does it detect that the corresponding bean is out of scope)?
I read somewhere that it uses request / session listeners to notify of these events. But these participants must be defined in web.xml, and there is no mention of the definition of such listeners in the Spring literature. So how does it work?
source share