Uploaded image for project: 'JBoss Naming'
  1. JBoss Naming
  2. JBNAME-47

NamingContext.discoverServer shouldn't join multicast group

XMLWordPrintable

      NamingContext.discoverServer invokes the joinGroup method on the MulticastSocket is creates. It uses the socket to 1) send a multicast message and 2) received a UDP unicast reply. There is no need to join the group to send to it. Joining just raises the (slight) possibility of incorrectly receiving someone else's multicast discovery message instead of the desired unicast reply.

              bstansbe@redhat.com Brian Stansberry
              bstansbe@redhat.com Brian Stansberry
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: