I need to detect when a session expires to perform a cleanup in a database. I configured a HttpSessionListener class and registered it in web.xml. So far that works, however I'm quite puzzled on how to actually get the spring application context so I can call a bean defined in it!
Perhaps there's a listener for that in Spring? Any ideas?