@Override
            public void run() {
                int clientPortNum = -1;
                int componentPortNum = -1;
                final ConnectionManager connectionManager = XMPPServer.getInstance().getConnectionManager();
                if ( connectionManager != null )
                {
                    clientPortNum = connectionManager.getPort( ConnectionType.SOCKET_C2S, false );
                    componentPortNum = connectionManager.getPort( ConnectionType.COMPONENT, false);
                }
                try {
                    if (jmdns == null) {
                        jmdns = new JmDNS();
                    }
                    String serverName = XMPPServer.getInstance().getServerInfo().getXMPPDomain();

                    if (clientPortNum != -1) {
                        ServiceInfo clientService = new ServiceInfo("_xmpp-client._tcp.local.",
                                serverName + "._xmpp-client._tcp.local.", clientPortNum, "XMPP Server");
                        jmdns.registerService(clientService);
                    }
                    if (componentPortNum != -1) {
                        ServiceInfo componentService = new ServiceInfo("_xmpp-component._tcp.local.",
                                serverName +  "._xmpp-component._tcp.local.", componentPortNum, "XMPP Component Server");
                        jmdns.registerService(componentService);
                    }
                }
                 catch (IOException ioe) {
                    Log.error(ioe.getMessage(), ioe);
                }
            }
Publishes Openfire information as a service using the Multicast DNS (marketed by Apple
as Rendezvous) protocol. This lets other nodes on the local network to discover
the name and port of Openfire.<p>

The multicast DNS entries published:<ul>
 <li>Client connections: type of "_xmpp-client._tcp.local.".
 <li>Component connections: type of "_xmpp-component._tcp.local.".
</ul>

@author Matt Tucker
xmppserver/src/main/java/org/jivesoftware/openfire/net/MulticastDNSService.java