Hi all,
I'm trying to setup a web project using Spring, Shiro but I'm having problems
with session-scoped beans like this one
@Named
@Scope(proxyMode = ScopedProxyMode.TARGET_CLASS, value = "session")
public class SessionBean {
@PostConstruct
public void init()
@PreDestroy
public void destroy()
}
Using Shiro's default "ServletContainerSessionManager" both methods are called
as expected, but when I switch to native session management with
DefaultWebSessionManager the pre-destroy method is never called (post construct
gets called). The validationScheduler runs, and the globalSessionTimeout has
been set.
Anyone knows whats happening here ? I've uploaded a small example project on
http://ge.tt/8Co4haK1/v/0 (just comment out the sessionManager in
applicationContext.xml to see the working @PreDestroy).
Thanks,
Steve