Fixed service discovery

master
Luca Frosini 2 years ago
parent 136f740b61
commit 4f56b412b0

@ -77,7 +77,9 @@ public class GCatClientDiscovery {
try {
SimpleQuery proxyQuery = queryForProxy(GCatConstants.SERVICE_CLASS);
addresses = ICFactory.client().submit(proxyQuery);
if(addresses==null || addresses.isEmpty()){
throw new Exception("No ResourceRegistry Proxy Found");
}
} catch (Exception e) {
logger.debug("{}. Looking for RunningInstance.", e.getMessage());
SimpleQuery serviceQuery = queryForService(GCatConstants.SERVICE_CLASS);

Loading…
Cancel
Save