users@shoal.java.net

Re: [Shoal-Users] Multiple Group Creation

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Tue, 26 Feb 2008 19:14:07 +0530

Hi Emanuele
Take at look at
shoal/gms/tests/com/sun/enterprise/ee/cms/tests/multigroupjoin/MultiGroupJoinTest.java
that Sheetal checked in recently.

That should help.
regards
Shreedhar

Emanuele wrote:
> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>