org.jboss.seam.preDestroyContext.SESSION issue?
andre1001 Nov 23, 2009 5:23 PMThere seens to be something wrong with org.jboss.seam.preDestroyContext.SESSION event. behavior.
@Name("org.jboss.seam.security.identity") @Scope(ScopeType.SESSION) @Install(precedence=APPLICATION) @Startup public class CustomIdentity extends Identity { .... @Observer("org.jboss.seam.preDestroyContext.SESSION") public void xxxx() { log.info("######### conta deslogada (timeout): teste #########"); } }
The first event is called without an end of session. The second one is called after a session end (expected behavior).
2009-11-23 11:02:46,989 DEBUG [org.jboss.seam.init.Initialization] Using Java + Groovy hot deploy 2009-11-23 11:02:47,006 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin call 2009-11-23 11:02:47,007 INFO [org.jboss.seam.security.Identity] ######### conta deslogada (timeout): teste #########* 2009-11-23 11:02:47,007 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.rememberMe 2009-11-23 11:02:47,007 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.credentials 2009-11-23 11:02:47,007 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.identity 2009-11-23 11:02:47,008 DEBUG [org.jboss.seam.contexts.Contexts] destroying business process context 2009-11-23 11:02:47,009 DEBUG [org.jboss.seam.contexts.Contexts] destroying conversation context 2009-11-23 11:02:47,009 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.bpm.businessProcess 2009-11-23 11:02:47,009 DEBUG [org.jboss.seam.contexts.Contexts] flushing server-side conversation context 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Contexts] flushing session context 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Contexts] destroying event context 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.transaction.transaction 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.events 2009-11-23 11:02:47,010 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End call 2009-11-23 11:12:50,631 DEBUG [org.jboss.seam.contexts.Lifecycle] End of session, destroying contexts 2009-11-23 11:12:50,667 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying conversation contexts: [] 2009-11-23 11:12:50,667 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying session context 2009-11-23 11:12:50,668 INFO [org.jboss.seam.security.Identity] ######### conta deslogada (timeout): teste ######### 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: javax.faces.request.charset 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.rememberMe 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.application.AjaxStateHolder 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.credentials 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.international.localeSelector 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.conversationEntries 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.ajax4jsf.application.AjaxStateManager.view_sequence 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.web.session 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.security.identity 2009-11-23 11:12:50,668 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.events
Thanks.