/* list the services available in the network */
public ServiceDiscoveryBean listwso2Services() {
List<String> serviceList = new ArrayList<String>();
List<String> urlList = new ArrayList<String>();
try {
JmDNS jmdns = JmDNS.create();
ServiceDiscoveryBean jmdnsBean = new ServiceDiscoveryBean();
while (true) {
ServiceInfo[] infos = jmdns.list(ServerTypeConstants.SERVICE_TYPE);
while (infos.length == 0) {
try {
infos = jmdns.list(ServerTypeConstants.SERVICE_TYPE);
Thread.sleep(10);
} catch (InterruptedException e) {
log.error("Could not retrive server list",e);
}
}