Skip to content

Instantly share code, notes, and snippets.

@goncha
goncha / tomcat.zookeeper.StandardServerListener.java
Created Sep 14, 2012
Register Tomcat server instance in ZooKeeper directory
View tomcat.zookeeper.StandardServerListener.java
package tomcat.zookeeper;
import java.io.IOException;
import java.net.InetAddress;
import java.net.NetworkInterface;
import java.net.SocketException;
import java.util.Enumeration;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;