webtier@glassfish.java.net

Re: [webtier] fix for issue 7990 - Error registering contexts when re-enabling HTTP listener

From: Jan Luehe <Jan.Luehe_at_Sun.COM>
Date: Fri, 24 Apr 2009 09:58:12 -0700

On 04/23/09 10:13 PM, Dies Koper wrote:
> Hi Jan,
>
> I've attached a way to fix it on V2.1. I think it'll work for V3 too,
> I'll try.
> Could you review the patch?
>

Looks great, Dies!

This would be in line with how MapperListener#isNotificationEnabled filters
out and ignores any notifications corresponding to MBeans belonging to
a different server instance than the server instance on which the
MapperListener
is running:

  public boolean isNotificationEnabled(Notification notification) {

      String otherInstance = objectName.getKeyProperty("J2EEServer");
      if (myInstance != null && otherInstance != null
              && !otherInstance.equals(myInstance)) {
          return false;
      }

Thanks!

Jan
> Regards,
> Dies
>
> ------------------------------------------------------------------------
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net