[
https://issues.apache.org/jira/browse/MYFACES-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800205#action_12800205
]
Jakob Korherr commented on MYFACES-2485:
----------------------------------------
The reason I opened this issue was because I wanted to ensure a very clean
container shutdown. I can now see that it is not good destroy the session beans
on a container shutdown.
However, there are maybe lots of active requests on a productive environment
and I think those should definitely be destroyed correctly.
The view-scoped beans are stored in the current view and thus in the view
state. If we have server-side state saving this is the session and if we have
client-side state saving this is the hidden input field. So when using
server-side state saving they probably should not be destroyed. However, when
using client-side state saving there are problems when restoring the view after
a container restart, so these should be destroyed I think.
> Ensure invocation of @PreDestroy methods on container shutdown/restart
> ----------------------------------------------------------------------
>
> Key: MYFACES-2485
> URL: https://issues.apache.org/jira/browse/MYFACES-2485
> Project: MyFaces Core
> Issue Type: Improvement
> Affects Versions: 2.0.0-alpha
> Reporter: Jakob Korherr
>
> Because of the fact that only ServletContextListener.contextDestroyed() is
> invoked on a container shutdown/restart, the correct destruction of
> ManagedBeans in session, view and request scope is not ensured.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.