users@shoal.java.net

Re: [Shoal-Users] Re: send message after join

From: Shreedhar Ganapathy <Shreedhar.Ganapathy_at_Sun.COM>
Date: Thu, 18 Jun 2009 08:38:59 -0700

Sorry about the lack of response on this.

Joe, could you or Sheetal do a quick check on Jerry's query and respond
back?

Thanks
Shreedhar

Jerry Raj wrote:
> Any suggestions?
> Or at least a way to check whether join is complete before calling send?
>
> Thanks
> -Jerry
>
> Jerry Raj wrote:
>
>> Hello,
>> I have code like this:
>> <snip>
>> gms.join();
>> // Commented: Thread.sleep(10000);
>> GroupHandle gh = gms.getGroupHandle();
>>
>> gh.sendMessage(blah);
>>
>> </snip>
>>
>> This used to work fine in Shoal 1.0. The node would join the group and the
>> message would be recd by other members in the group. But this does not happen
>> with Shoal 1.1 unless I uncomment the sleep(10000) between join() and send(). I
>> expect this is because the join operation has not completed successfully when
>> send() is called. Is there a way to be notified when join is complete? I tried
>> looking at JoinedAndReadyNotificationActionImpl but that does not seem to work?
>>
>> I'm using Shoal 1.1 from the download link on the front page of the Shoal website.
>>
>> -Jerry
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_shoal.dev.java.net
> For additional commands, e-mail: users-help_at_shoal.dev.java.net
>
>