diff --git a/java/target/env-default-rules.sh b/java/target/env-default-rules.sh index 3fa2fd0772c..1c7d95ffd87 100755 --- a/java/target/env-default-rules.sh +++ b/java/target/env-default-rules.sh @@ -8,7 +8,15 @@ if [ -z "${SERVER_NAME}" ]; then SERVER_NAME=MASTER fi - +if [ -n "$AUTO_REPLICATE" ]; then + if [ -z "${REPLICATE_ON_START}" ]; then + # To start replication upon startup provide the fully-qualified names of the Replicable service classes + # for which to trigger replication. If you activate this make sure to + # set the REPLICATE_MASTER_EXCHANGE_NAME variable to the + # same channel the master is using in its REPLICATION_CHANNEL variable + REPLICATE_ON_START=com.sap.sailing.server.impl.RacingEventServiceImpl,com.sap.sse.security.impl.SecurityServiceImpl,com.sap.sse.filestorage.impl.FileStorageManagementServiceImpl,com.sap.sse.mail.impl.MailServiceImpl,com.sap.sailing.polars.impl.PolarDataServiceImpl,com.sap.sailing.domain.racelogtracking.impl.fixtracker.RegattaLogFixTrackerRegattaListener,com.sap.sailing.windestimation.integration.WindEstimationFactoryServiceImpl,com.sap.sailing.shared.server.impl.SharedSailingDataImpl + fi +fi # Message Queue hostname where to # send messages for replicas (this server is master) if [ -z "${REPLICATION_HOST}" ]; then diff --git a/java/target/env.sh b/java/target/env.sh index bd1a47addcb..e9ca56b9497 100755 --- a/java/target/env.sh +++ b/java/target/env.sh @@ -13,14 +13,6 @@ # start on that machine. # MEMORY="6000m" -# To start replication upon startup provide the fully-qualified names of the Replicable service classes -# for which to trigger replication. If you activate this make sure to -# set the REPLICATE_MASTER_EXCHANGE_NAME variable to the -# same channel the master is using in its REPLICATION_CHANNEL variable - -if [ -n "$AUTO_REPLICATE" ]; then - REPLICATE_ON_START=com.sap.sailing.server.impl.RacingEventServiceImpl,com.sap.sse.security.impl.SecurityServiceImpl,com.sap.sse.filestorage.impl.FileStorageManagementServiceImpl,com.sap.sse.mail.impl.MailServiceImpl,com.sap.sailing.polars.impl.PolarDataServiceImpl,com.sap.sailing.domain.racelogtracking.impl.fixtracker.RegattaLogFixTrackerRegattaListener,com.sap.sailing.windestimation.integration.WindEstimationFactoryServiceImpl,com.sap.sailing.shared.server.impl.SharedSailingDataImpl -fi # Host / port where the master Java instance is running # Make sure firewall configurations allow access #