if (Thread.currentThread().isInterrupted()) {
callback.cancelled();
return null;
}
try {
JdbcInfoProviderServiceLocator locator = new JdbcInfoProviderServiceLocator();
StringBuilder sb = new StringBuilder();
if (!getConfiguration().configureWebservice(locator, SERVICE_NAME, sb, callback)) {
// The callback has already been notified, so we can just return here.
return null;
}
user = getConfiguration().getUserName();
password = getConfiguration().getPassword();
locator.setkonga_jdbc_infoproviderEndpointAddress(sb.toString());
return locator.getkonga_jdbc_infoprovider();
} catch (ServiceException ex) {
throw new IntegrationServerException("Failed to call web service: " + ex.getMessage(), ex);
}
}