[jboss-user] [Management, JMX/JBoss] - Re: jboss.tomcat.connectors.started JMX Notification Gone?

remy.maucherat@jboss.com do-not-reply at jboss.com
Tue Feb 17 09:23:53 EST 2009


Connector start is very similar now: it comes from the start notification of JBoss. So adding it back is not so useful, but it does compatibility.

   /**
  |     * Used to receive notification of the server start msg so the tomcat connectors can be started after all web apps
  |     * are deployed.
  |     */
  |    public void handleNotification(Notification msg, Object handback)
  |    {
  |       String type = msg.getType();
  |       if (type.equals(Server.START_NOTIFICATION_TYPE))
  |       {
  |          log.debug("Saw " + type + " notification, starting connectors");
  |          try
  |          {
  |             startConnectors();
  |          }
  |          catch (Exception e)
  |          {
  |             log.warn("Failed to startConnectors", e);
  |          }
  |       }
  |       if (type.equals(Server.STOP_NOTIFICATION_TYPE))
  |       {
  |          log.debug("Saw " + type + " notification, stopping connectors");
  |          try
  |          {
  |             stopConnectors();
  |          }
  |          catch (Exception e)
  |          {
  |             log.warn("Failed to stopConnectors", e);
  |          }
  |       }
  |    }
  | 

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4210701#4210701

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4210701



More information about the jboss-user mailing list