ObjectMapper mapper = new ObjectMapper();\r
String content = mapper.writeValueAsString(entity);\r
HttpPost httpPost = new HttpPost("http://" + MicroServiceConfig.getMsbServerAddr()\r
- + ":8086/openoapi/microservices/v1/services?createOrUpdate=false");\r
+ + ":8086/api/microservices/v1/services?createOrUpdate=false");\r
if (StringUtils.isNotEmpty(content)) {\r
httpPost.setEntity(new ByteArrayEntity(content.getBytes()));\r
}\r
log.info("Registration successful service to the bus :" + response.getEntity());\r
return true;\r
} else {\r
- log.warn("Registering the service to the bus failure");\r
+ log.warn("Registering the service to the bus failure:"+response.getStatusLine().getStatusCode()+" "+\r
+ response.getStatusLine().getReasonPhrase()+response.getStatusLine().getProtocolVersion());\r
return false;\r
}\r
} finally {\r