Skip to content
Snippets Groups Projects
Commit a6905304 authored by felmer's avatar felmer
Browse files

SP-592, BIS-387: Throw exception in createServiceUrl() which is only used in...

SP-592, BIS-387: Throw exception in createServiceUrl() which is only used in context of service conversation.

SVN: 28793
parent fa76f849
No related merge requests found
......@@ -25,6 +25,7 @@ import org.springframework.remoting.RemoteAccessException;
import ch.rinn.restrictions.Private;
import ch.systemsx.cisd.common.api.IRpcService;
import ch.systemsx.cisd.common.exceptions.EnvironmentFailureException;
import ch.systemsx.cisd.common.spring.HttpInvokerUtils;
import ch.systemsx.cisd.common.ssl.SslCertificateHelper;
......@@ -128,6 +129,11 @@ public class ServiceFinder
{
ServiceWithUrl<S> serviceWithUrl =
createServiceWithUrl(serviceInterface, serverUrl, servicePinger, timeoutInMillis);
if (canConnectToService(serviceWithUrl.getService(), servicePinger) == false)
{
throw new EnvironmentFailureException("Can not connect service "
+ serviceInterface.getName() + " at " + serverUrl);
}
return serviceWithUrl.getUrl();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment