[ 
https://issues.apache.org/jira/browse/MYFACES-2485?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12800228#action_12800228
 ] 

Bernhard Huemer commented on MYFACES-2485:
------------------------------------------

Well, again I beg to differ, because a container only shuts down after all 
threads within any servlet's service method have exited or after a certain 
timeout period has passed (that's at least how it's supposed to be the case 
according to Sun - otherwise you've come across an issue ..). So, if you know 
that you've got potentially long-running requests, just increase that timeout 
period, just to be sure - that's it.

Regarding the "client-side state view-scoped beans", I'm just curious, how are 
you going to destroy those beans if they are actually saved client-side? 
There's no connection to that client anymore after all? Does the view itself 
get invalidated as well if the container restarts?

> 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.

Reply via email to