java/com.sap.sse.landscape.aws/src/com/sap/sse/landscape/aws/impl/AwsApplicationReplicaSetImpl.java
... ...
@@ -15,6 +15,7 @@ import java.util.logging.Level;
15 15
import java.util.logging.Logger;
16 16
import java.util.stream.IntStream;
17 17
18
+import com.sap.sailing.landscape.common.SharedLandscapeConstants;
18 19
import com.sap.sse.ServerInfo;
19 20
import com.sap.sse.common.Duration;
20 21
import com.sap.sse.common.HttpRequestHeaderConstants;
... ...
@@ -332,7 +333,7 @@ implements AwsApplicationReplicaSet<ShardingKey, MetricsT, ProcessT> {
332 333
// or no load balancer forwards to it; in any case we can only default to the assumption that the process may be an archive
333 334
// server:
334 335
if (getName().equals(ARCHIVE_SERVER_NAME)) {
335
- setHostname("www.sapsailing.com"); // TODO this should probably be archive-failover.sapsailing.com for the fail-over ARCHIVE server
336
+ setHostname("www."+SharedLandscapeConstants.DEFAULT_DOMAIN_NAME); // TODO this should probably be archive-failover.sapsailing.com for the fail-over ARCHIVE server; TODO bug6208: use something other than "www" for the ARCHIVE
336 337
} else {
337 338
logger.warning("Found an application replica set " + getName() + " that is not the "
338 339
+ ARCHIVE_SERVER_NAME + " replica set; no hostname can be inferred.");