summaryrefslogtreecommitdiffstats
path: root/engine-d/src
diff options
context:
space:
mode:
Diffstat (limited to 'engine-d/src')
-rw-r--r--engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
index 5f2f3be..5bb3dbe 100644
--- a/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
+++ b/engine-d/src/main/java/org/onap/holmes/engine/EngineDActiveApp.java
@@ -48,6 +48,7 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
}
private MicroServiceInfo createMicroServiceInfo() {
+ String[] serviceAddrInfo = MicroServiceConfig.getServiceAddrInfo();
MicroServiceInfo msinfo = new MicroServiceInfo();
msinfo.setServiceName("holmes-engine-mgmt");
msinfo.setVersion("v1");
@@ -56,8 +57,8 @@ public class EngineDActiveApp extends IOCApplication<EngineDAppConfig> {
msinfo.setVisualRange("0|1");
Set<Node> nodes = new HashSet<>();
Node node = new Node();
- node.setIp(MicroServiceConfig.getServiceIp());
- node.setPort("9102");
+ node.setIp(serviceAddrInfo[0]);
+ node.setPort(serviceAddrInfo[1]);
nodes.add(node);
msinfo.setNodes(nodes);
return msinfo;