Hi guys, To ensure the execution of the ManagedBean's @PreDestroy methods on a container shutdown/restart, I would like to introduce a ManagedBeanRegistry, in which all active ManagedBeans from all scopes are referenced.
The problem is the following: At the moment on a container shutdown or restart, only contextDestroyed is invoked (tested in tomcat 6), thus only the @PreDestroy methods of all ApplicationScoped ManagedBeans will be invoked, but not those of any existing ManagedBeans in session, request, view (and maybe also custom) scope, because they can not be referenced in contextDestroyed(). Any opinions on that? Thanks in advance! Regards, Jakob
