1 2 Previous Next 17 Replies Latest reply on Feb 11, 2011 3:06 PM by Dave Chen

    ServletContextListener not called when shutdown

    Dave Chen Master

      I registered a ServletContextListener. When JBoss 5.0.1 starts, the contextInitialized(...) is called as expected.

      When running JBoss from Windows Dos prompt, press CTRL+C,  contextDestroyed() is called as expected.


      But if running JBoss as windows service, net stop jboss,  contextDestroyed() is not called.

      ServletContextListener.contextDestroyed() should be called regardless of the way the JBoss is started.


      Is this a bug?

      Thanks for help.


        1 2 Previous Next