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
>