myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard W. Smith, Jr." <smithh032...@gmail.com>
Subject Re: [MyFaces 2.2] invoke @PreDestroy on (CDI) ViewScoped beans upon session expiration
Date Fri, 18 Oct 2013 15:12:33 GMT
On Thu, Oct 17, 2013 at 11:52 PM, Leonardo Uribe <lu4242@gmail.com> wrote:

>
> You can check here:
>
> https://builds.apache.org/view/M-R/view/MyFaces/job/myfaces-current22-1/
>
> As soon as the job (#1164) is done, you can take the jars from that
> location (which should be the same).
>
>
wish i had good news/report, but the issue seems to still exist. please see
below.

I took latest myfaces 2.2.0 JARs from repository, dropped in tomee/lib,
started tomee (without dropping a new WAR, since WAR has not changed since
my last test).

tomee started and log included the following:

Oct 18, 2013 10:56:10 AM org.apache.myfaces.config.LogMetaInfUtils
logArtifact
INFO: Artifact 'myfaces-api' was found in version
'2.2.0-20131018.053919-2508' from path
'file:/C:/apache-tomee-plus-1.6.0-SNAPSHOT/lib/myfaces-api-2.2.0-20131018.053919-2508.jar'

Oct 18, 2013 10:56:10 AM org.apache.myfaces.config.LogMetaInfUtils
logArtifact
INFO: Artifact 'myfaces-impl' was found in version
'2.2.0-20131018.054743-2505' from path
'file:/C:/apache-tomee-plus-1.6.0-SNAPSHOT/lib/myfaces-impl-2.2.0-20131018.054743-2505.jar'

Oct 18, 2013 10:56:11 AM org.apache.myfaces.util.ExternalSpecifications
isCDIAvailable
INFO: MyFaces CDI support enabled

Oct 18, 2013 10:56:11 AM
org.apache.myfaces.spi.impl.DefaultInjectionProviderFactory
getInjectionProvider
INFO: Using InjectionProvider
org.apache.myfaces.spi.impl.Tomcat7AnnotationInjectionProvider


Test 1: login user, navigate to page which references CDI @ViewScoped bean,
F5/refresh browser to generate another CDI @ViewScoped bean, and logout
user, which invokes HttpSession.invalidate() via CDI @SessionScoped user
bean; @PreDestroy of CDI @ViewScoped bean was not executed. :(

Oct 18, 2013 10:56:31 AM jsf.users.pf_UsersController loginUser
INFO: administrator logged in at 10/18/2013 10:56 AM

Oct 18, 2013 10:56:49 AM jsf.orders.OrderDocumentBean init
INFO: jsf.orders.OrderDocumentBean@6612072e

Oct 18, 2013 10:56:53 AM jsf.orders.OrderDocumentBean init
INFO: jsf.orders.OrderDocumentBean@5421887b

Oct 18, 2013 10:57:03 AM jsf.users.pf_UsersController logout
INFO: administrator logged out at 10/18/2013 10:57 AM


Test 2: same as test 1, but session expire via 1 minute timeout, same
results (@PreDestroy of CDI @viewScoped bean was not executed)

Oct 18, 2013 10:57:50 AM jsf.users.pf_UsersController loginUser
INFO: administrator logged in at 10/18/2013 10:57 AM

Oct 18, 2013 10:58:01 AM jsf.orders.OrderDocumentBean init
INFO: jsf.orders.OrderDocumentBean@432bb463

Oct 18, 2013 10:58:08 AM jsf.orders.OrderDocumentBean init
INFO: jsf.orders.OrderDocumentBean@7049be5a

Oct 18, 2013 10:59:10 AM jsf.users.pf_UsersController sessionTimeout
INFO: administrator session ended at 10/18/2013 10:59 AM


I know I need to isolate/develop a test case, but not much bandwidth right
now; will, hopefully, develop a test case, ASAP.

just wanted to report my test results.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message