- String url = "";
- try {
- String[] msbUrl = MicroServiceConfig.getMsbServerAddrWithHttpPrefix().split(":");
- url = msbUrl[0] + ":" + msbUrl[1] + suffixUrl;
- } catch (Exception e) {
- log.info("Failed to get msb address");
- }
- if ("".equals(url)) {
- try {
- url = "https://" + MicroServiceConfig.getServiceConfigInfoFromCBS("aai_config").replace("http://", "")
- + suffixUrl;
- } catch (Exception e) {
- log.info("Failed to get the address of A&AI.", e);
- }
- }
- return url;