Hi,
In my app I need that a node instantiate three different group. Here it
is the code:
Runnable gms1R, gms2R, gms3R = null;
Thread gms1T, gms2T, gms3T = null;
Properties properties = new Properties();
gms1R = GMSFactory.startGMSModule(
"node1",
"MainCluster",
GroupManagementService.MemberType.CORE,
properties);
gms1T = new Thread(gms1R, "GMS_Main_Cluster_Thread");
gms2R = GMSFactory.startGMSModule(
"node1",
"group1",
GroupManagementService.MemberType.CORE,
properties);
gms2T = new Thread(gms2R, "GMS_My_Cluster_Thread");
gms3R = GMSFactory.startGMSModule(
"node1",
"SupervisorCluster",
GroupManagementService.MemberType.CORE,
properties);
gms3T = new Thread(gms3R, "GMS_All_Supervisor_Cluster_Thread");
gms1T.start();
gms2T.start();
gms3T.start();
It happens that the node always fails in two groups and I receive the
node notification failure.
It seems that the node remains in the two groups in which it has failed
even if GroupManagementService.getGroupHandle().getAllCurrentMembers()
returns a zero-size list.
Moreover GMSFactory.getAllGMSInstancesForMember() returns all the three
groups instantiated.
Is this that correct way to instantiate multiple cluster or I'm missing
something?
Thanks.
Emanuele
--
Email.it, the professional e-mail, gratis per te:
http://www.email.it/f
Sponsor:
Analisi di Bilancio: come capire correttamente un bilancio aziendale
* Esempi, modelli pratici, software utili
Clicca qui:
http://adv.email.it/cgi-bin/foclick.cgi?mid=7594&d=26-2