I would like to delete some temporal files when user session finishes. The information associated with the files is stored in an object annotated with @SessionAttributes
.
The only way I've found to deal with this is creating an HttpSessionListener
.
Is there a higher level, simplified, Springy way to listen to the session end event where I could easily get my annotated object?