Re: [javagroups-users] Membership changed events
Brought to you by:
belaban
From: Bela B. <be...@ya...> - 2004-04-22 16:45:07
|
Use PullPushAdapter.addMembershipListener() Torgeir Lund wrote: >Hello, > >We cannot get the MembershipListener events. We use the PullPushAdapter. > >Extracts from our code: > > >JChannel channel; >channel = new JChannel(channelProps); >channel.setChannelListener(this); >channel.setOpt(Channel.AUTO_RECONNECT, new Boolean(true)); >channel.setOpt(Channel.VIEW, new Boolean(true)); >channel.setOpt(Channel.SUSPECT, new Boolean(true)); >channel.setOpt(Channel.BLOCK, new Boolean(true)); >channel.setOpt(Channel.LOCAL, new Boolean(false)); >channel.connect("mychannel"); > >PullPushAdapter adapter; >adapter = new PullPushAdapter(channel, this); > > >The current class/object is implementing the MembershipListener interface. >The viewAccepted() method is never called when new members are entering the >group. Only when the channel is connected by the local/current class, the >viewAccepted() method is called (never when remote members are connecting). > >We are using default channel properties. Other things are working, like the >RpcDispatcher callRemoteMethod(). Channel.getView().getMembers() returns all >members correctly after connect. > >How can we debug this problem? > >Cheers, >Torgeir Lund > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: IBM Linux Tutorials >Free Linux tutorial presented by Daniel Robbins, President and CEO of >GenToo technologies. Learn everything from fundamentals to system >administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click >_______________________________________________ >javagroups-users mailing list >jav...@li... >https://lists.sourceforge.net/lists/listinfo/javagroups-users > > > -- Bela Ban http://www.jgroups.org Cell: (408) 316-4459 |