Fixed service discovery

This commit is contained in:
Luca Frosini 2022-08-01 10:19:07 +02:00
parent 136f740b61
commit 4f56b412b0
1 changed files with 3 additions and 1 deletions

View File

@ -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);