Fixed service discovery
This commit is contained in:
parent
136f740b61
commit
4f56b412b0
|
@ -77,7 +77,9 @@ public class GCatClientDiscovery {
|
||||||
try {
|
try {
|
||||||
SimpleQuery proxyQuery = queryForProxy(GCatConstants.SERVICE_CLASS);
|
SimpleQuery proxyQuery = queryForProxy(GCatConstants.SERVICE_CLASS);
|
||||||
addresses = ICFactory.client().submit(proxyQuery);
|
addresses = ICFactory.client().submit(proxyQuery);
|
||||||
|
if(addresses==null || addresses.isEmpty()){
|
||||||
|
throw new Exception("No ResourceRegistry Proxy Found");
|
||||||
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
logger.debug("{}. Looking for RunningInstance.", e.getMessage());
|
logger.debug("{}. Looking for RunningInstance.", e.getMessage());
|
||||||
SimpleQuery serviceQuery = queryForService(GCatConstants.SERVICE_CLASS);
|
SimpleQuery serviceQuery = queryForService(GCatConstants.SERVICE_CLASS);
|
||||||
|
|
Loading…
Reference in New Issue