Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2013-10-16 18:42:26 +0000
committerslewis2013-10-16 18:42:26 +0000
commit26e4c35c7982626a34ea76090d512f1245f3c5b2 (patch)
tree11c1c622ee23c02871b098f240cfbfe717812b55 /examples/bundles/com.mycorp.examples.timeservice.host/src
parente18160362e71a96ed8981e10ee28061ef431037d (diff)
downloadorg.eclipse.ecf-26e4c35c7982626a34ea76090d512f1245f3c5b2.tar.gz
org.eclipse.ecf-26e4c35c7982626a34ea76090d512f1245f3c5b2.tar.xz
org.eclipse.ecf-26e4c35c7982626a34ea76090d512f1245f3c5b2.zip
Fix for timeservice example problem with hostname accidently introducedR-Release_HEAD-sdk_feature-122_2013-10-16_18-44-12
in previous commit.
Diffstat (limited to 'examples/bundles/com.mycorp.examples.timeservice.host/src')
-rw-r--r--examples/bundles/com.mycorp.examples.timeservice.host/src/com/mycorp/examples/timeservice/host/Activator.java3
1 files changed, 3 insertions, 0 deletions
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 954866fd2..d2e91848a 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 @@ public class Activator implements BundleActivator {
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 @@ public class Activator implements BundleActivator {
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;

Back to the top