Add serviceIp property which is used to config wso2-ext microservice ipaddress
[vfc/nfvo/wfengine.git] / wso2bpel-ext / wso2bpel-core / wso2bpel-mgr / src / main / java / org / openo / carbon / bpel / common / ServiceRegistrer.java
index 5408c74..03d88aa 100644 (file)
@@ -63,7 +63,7 @@ public class ServiceRegistrer implements Runnable {
     wso2bpelEntity.setProtocol("REST");
     wso2bpelEntity.setVersion("v1");
     wso2bpelEntity.setUrl("/openoapi/wso2bpel/v1");
-    wso2bpelEntity.setSingleNode(null, "8101", 0);
+    wso2bpelEntity.setSingleNode(Config.getConfigration().getServiceIp(), "8101", 0);
     wso2bpelEntity.setVisualRange("1");
   }