You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hivemind.apache.org by "Hensley, Richard" <Ri...@McKesson.com> on 2005/02/16 02:24:33 UTC

Shuting down the Hivemind Registry

I'm running into problems with the hivemind registry not getting shutdown in
my web application. So, I'm implementing the following.

public class HivemindContextListener implements ServletContextListener {

    /**
     * @see
javax.servlet.ServletContextListener#contextInitialized(javax.servlet.Servle
tContextEvent)
     */
    public void contextInitialized(ServletContextEvent arg0) {
    }

    /**
     * @see
javax.servlet.ServletContextListener#contextDestroyed(javax.servlet.ServletC
ontextEvent)
     */
    public void contextDestroyed(ServletContextEvent arg0) {
        /* get the registry and shut it down right here */
    }
}

And in web.xml

  <listener>
    <listener-class>
    com.mckesson.lab.tc.HivemindContextListener</listener-class>
  </listener>

I'm assuming this is the standard way to handle this problem for a web
application.


---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-user-help@jakarta.apache.org