Fix for timeservice example problem with hostname accidently introduced
in previous commit.
diff --git a/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java b/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
index 954866f..d2e9184 100644
--- a/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
+++ b/examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java
@@ -24,6 +24,8 @@
private static final String GENERIC_SERVER_CONFIG = "ecf.generic.server";
private static final String GENERIC_SERVER_PORTPROP_NAME = GENERIC_SERVER_CONFIG+ ".port";
private static final String GENERIC_SERVER_PORTPROP_VALUE = "3288";
+ private static final String GENERIC_SERVER_HOSTPROP_NAME = GENERIC_SERVER_CONFIG+ ".hostname";
+ private static final String GENERIC_SERVER_HOSTPROP_VALUE = "localhost";
private static final String R_OSGI_SERVER_CONFIG = "ecf.r_osgi.peer";
@@ -70,6 +72,7 @@
if (GENERIC_SERVER_CONFIG.equals(serviceExportedConfig)) {
propName = GENERIC_SERVER_PORTPROP_NAME;
propValue = GENERIC_SERVER_PORTPROP_VALUE;
+ props.put(GENERIC_SERVER_HOSTPROP_NAME, GENERIC_SERVER_HOSTPROP_VALUE);
} else if (REST_SERVER_CONFIG.equals(serviceExportedConfig)) {
propName = REST_SERVER_IDPROP_NAME;
propValue = REST_SERVER_IDPROP_VALUE;