Hi Shreedhar.
Thanks to you, I understood that.
Thanks!
--
Bongjae Chang
----- Original Message -----
From: Shreedhar Ganapathy
To: dev_at_shoal.dev.java.net
Sent: Saturday, June 14, 2008 1:05 AM
Subject: Re: [Shoal-Dev] a question about JoinedAndReadyNotification
Bongjae Chang wrote:
Hi.
I have a question about JoinedAndReadyNotification.
Assuming that "A" and "B" are members of "TestGroup".
"A" joins the group and "A" calls gms.reportJoinedAndReadyState( "TestGroup" ).
Then "A" receives own JoinedAndReadyNotification. Of course "A" receives own JoinNotication.
When "A" already joined the group, new "B" joins the group. Then I know that "B" receives "A"'s JoinNotification and own JoinNotification.
At that time, I don't know whether "B" should receive "A"'s JoinedAndReadyNotification or not. This is my question.
At this time, the way it is designed is that B does not have to receive the Joined and Ready Notification wrt A.
Now though "A" reported JoinedAndReady's state as well as joined the group, "B" only receives "A"'s join notification if "B" joins the group later.
Yes, when a member joins a group late after other members have joined and indicated their ready state, then the Joined and Ready Notification is not sent. However, the J&R member's state will be Ready. i.e. in the JoinNotification there is a new api added getMemberState(). This call would return the current true state of the member.
Of course, both "A" and "B" have JoinNotificationActionFactory and JoinedAndReadyNotificationActionFactory.
Thanks.
--
Bongjae Chang