-
1. Re: Shutting down JBoss - how long is Seam working?
asiandub Jan 6, 2009 5:13 PM (in response to asiandub)solved the problem using the following snippet in my compontents.xml
<event type="org.jboss.seam.preDestroyContext.SESSION"> <action execute="#{intranet.authenticator.logout}" /> </event>
but: should one of the enligthed read this - i'd really like to understand why the upper example is not working...
cheers,
jan
-
2. Re: Shutting down JBoss - how long is Seam working?
asiandub Jan 6, 2009 5:27 PM (in response to asiandub)oddly, i can see from the logfiles, that the event (post 2) is raised after the code of post 1 is called.
again: bijection is working in (2), but not in (1)...
-
3. Re: Shutting down JBoss - how long is Seam working?
asiandub Jan 18, 2009 10:55 PM (in response to asiandub)i hate these 'me and myself' monologues in this forum...
-
4. Re: Shutting down JBoss - how long is Seam working?
billevans Jun 23, 2009 12:43 AM (in response to asiandub)Hey, Jan!
I also hate it when people don't take any interest in my questions....
I know it is nearly 6 months later, but I have a similar problem to yours and wonder if you can help me!
First, though, I must thank you for pointing me to the <event> entry in components.xml. Very useful.
Anyway, to my point. Like you, I want to catch the JBoss shutdown sequence and logout all my users. However, I would also like the logout to cause their browser windows to get refreshed back to the login screen. Now by using the RichFaces' component <a4j:push>, I can get asynchronous refreshes to happen but NOT in this instance, presumably because the Seam servlet has already shutdown. Do you by any chance have knowledge of any other way to do this?
NOTE: I'll understand if you don't bother responding as you got a very poor response yourself.
Bill