2 Replies Latest reply on Feb 3, 2005 1:57 AM by general

    Catching Jboss shutdown notification

    general

      Hi

      I find it is really a challege for web developers to do something when user logouts. Because they don't know when user logouts, especially under this case: admin shuts down Jboss. It seems they don't get any chance to show their coding talent.
      Before I thought session listeners in web appliaction could get such a chance. I thought Jboss would destroy all the sessions so I could listen to the session-destroyed event. Today it was proved that this is not correct. No such a event happened when admin shut down Jboss.
      Is there a way to catch such a similar event? Such as monitor, notification listener or any others?

      Thanks!

        • 1. Re: Catching Jboss shutdown notification
          starksm64

          Its a known issue that is being looked at:
          http://jira.jboss.com/jira/browse/JBAS-1008

          • 2. Re: Catching Jboss shutdown notification
            general

            Thanks, scott! Let me know servlet context can get a notification.

            I looked at that bug following the URL. I think it is a bug only on single machine. Web server and app server are on the same machine. For distributed environment, whether it is a bug depends on the sequence which admin shuts down the web server and app server following. If admin shuts down web server before app server, then that it not a bug. However if admin shuts down app server firstly, it is still a bug except that when app server is shutting down, it notices web server and then web server terminates automatically.