Bug 421615: Cloud: synchronization of notifications
Using fixed and public cluster backend session id.
Change-Id: Ie13a1f3f3a11c8fe0cfca97303379d2664486e85
Signed-off-by: Ralph Steiner <rst@bsiag.com>
Reviewed-on: https://git.eclipse.org/r/34357
Tested-by: Hudson CI
Reviewed-by: Judith Gull <jgu@bsiag.com>
diff --git a/org.eclipse.scout.rt.server/src/org/eclipse/scout/rt/server/services/common/clustersync/ClusterSynchronizationService.java b/org.eclipse.scout.rt.server/src/org/eclipse/scout/rt/server/services/common/clustersync/ClusterSynchronizationService.java
index 50cf847..26e95a5 100644
--- a/org.eclipse.scout.rt.server/src/org/eclipse/scout/rt/server/services/common/clustersync/ClusterSynchronizationService.java
+++ b/org.eclipse.scout.rt.server/src/org/eclipse/scout/rt/server/services/common/clustersync/ClusterSynchronizationService.java
@@ -51,6 +51,7 @@
private static final String TRANSACTION_MEMBER_ID = ClusterSynchronizationService.class.getName();
private static final IScoutLogger LOG = ScoutLogManager.getLogger(ClusterSynchronizationService.class);
+ public static final String CLUSTER_SYNC_BACKEND_SESSION_ID = "org.eclipse.scout.rt.server.clustersync.BackendSessionId";
private static final String CLUSTER_NODE_ID_PARAM = "org.eclipse.scout.rt.server.clusterNodeId";
private final EventListenerList m_listenerList = new EventListenerList();
private final ClusterNodeStatusInfo m_statusInfo = new ClusterNodeStatusInfo();
@@ -111,7 +112,7 @@
IServerSession serverSession = null;
try {
serverSession = SERVICES.getService(IServerSessionRegistryService.class).newServerSession(sessionClazz, createBackendSubject());
- serverSession.setIdInternal(UUID.randomUUID().toString());
+ serverSession.setIdInternal(CLUSTER_SYNC_BACKEND_SESSION_ID);
}
catch (ProcessingException e) {
LOG.error("Error creating backend session for cluster synchronization.", e);