Hi Julius
I ran the rungmsdemo.sh that comes with Shoal checked out sources on a
single terminal with one member. This demo starts a code that calls
GroupManagementService.addJoinNotificationFactory(...) before doing a
GroupManagementService.join() which is probably what your code is also
doing based on the sample. I see the join notification being process by
the processNotification() call back handler.
Here's the log output:
shreedhar-ganapathys-macbook-pro:gms shreed$ ./rungmsdemo.sh s1 g1 CORE
100000 INFO
[#|2009-07-29T10:43:05.451-0700|INFO|Shoal|ShoalLogger|_ThreadID=10;_ThreadName=ViewWindowThread;ClassName=ViewWindow;MethodName=getMemberTokens;|GMS
View Change Received for group g1 : Members in view for
MASTER_CHANGE_EVENT(before change analysis) are :
1: MemberId: s1, MemberType: CORE, Address:
urn:jxta:uuid-59616261646162614A78746150325033BB45E78C9DAD44AB8F099625DF7A5C8C03
|#]
[#|2009-07-29T10:43:05.456-0700|INFO|Shoal|ShoalLogger|_ThreadID=10;_ThreadName=ViewWindowThread;ClassName=ViewWindow;MethodName=newViewObserved;MASTER_CHANGE_EVENT;s1;g1;|Analyzing
new membership snapshot received as part of event : MASTER_CHANGE_EVENT
for Member: s1 of Group: g1|#]
[#|2009-07-29T10:43:05.457-0700|INFO|Shoal|ShoalLogger|_ThreadID=10;_ThreadName=ViewWindowThread;ClassName=ViewWindow;MethodName=addGroupLeadershipNotificationSignal;|adding
GroupLeadershipNotification signal leaderMember: s1 of group: g1|#]
[#|2009-07-29T10:43:05.459-0700|INFO|Shoal|ShoalLogger|_ThreadID=10;_ThreadName=ViewWindowThread;ClassName=ViewWindow;MethodName=addJoinNotificationSignal;|Adding
Join member: s1 group: g1 StartupState:INSTANCE_STARTUP|#]
[#|2009-07-29T10:43:05.468-0700|INFO|Shoal|ShoalLogger|_ThreadID=11;_ThreadName=pool-1-thread-1;ClassName=GMSClientService;MethodName=processNotification;|Received
JoinNotificationSignal for member s1 with state set to STARTING|#]
[#|2009-07-29T10:43:05.468-0700|INFO|Shoal|ShoalLogger|_ThreadID=12;_ThreadName=pool-1-thread-2;ClassName=*GMSClientService*;MethodName=*processNotification;*|*Received
JoinNotificationSignal for member s1 with state set to STARTING|#]
*
[#|2009-07-29T10:43:05.469-0700|INFO|Shoal|ShoalLogger|_ThreadID=13;_ThreadName=pool-1-thread-3;ClassName=*ApplicationServer*;MethodName=*processNotification*;|*processing
notification
com.sun.enterprise.ee.cms.impl.common.JoinNotificationSignalImpl for
group g1 memberName=s1|#]*
Could you share the code you have written - we can have a look see.
--Shreedhar
Bongjae Chang wrote:
> Hi Julius,
>
> Could I know which version was used when you tested it?
>
> You means that you couldn't receive own join notification if there
> existed only one member(own).
>
> Am I understanding your problem correctly?
>
> --
> Bongjae Chang
>
>
>
> ----- Original Message -----
> *From:* JuliusOliverFernandes <mailto:julius_ferns_at_rediffmail.com>
> *To:* users_at_shoal.dev.java.net <mailto:users_at_shoal.dev.java.net>
> *Sent:* Wednesday, July 29, 2009 5:20 PM
> *Subject:* [Shoal-Users] Shoal related question
>
> Dear All
> I have to create application more on the likes of a cluster
> management (one or more nodes) in which when one node goes down,
> the other needs to take over.
> I have coded using the shoal API referring to the example code.ON
> the likes that whenever there is a join notification I start the
> application on the group leader. The notification happens when the
> second node joins.This is fine.
> But the problem is, when I start the first node and call the join
> method somewhere there is no notification and does not come into
> the processNotification callback method. Is there a way to
> initiate this?
> Reason for doing this is whenever I start the first node I want to
> start the application on that node.I dont want to wait for the
> second node to join and then get notification to start the first.
> Any suggestions and solutions is highly appreciated.
>
> Regards
> Julius Fernandes.
>
> <http://sigads.rediff.com/RealMedia/ads/click_nx.ads/www.rediffmail.com/signatureline.htm@Middle?>
>
>