[jgroups-users] [ Migration to jgroup 4.0 ]
Questions/problems related to using JGroups <[email protected]> Mon, 26 Jun 2017 23:56:12 +0300
| Newsgroups | gmane.comp.java.javagroups.general |
|---|---|
| Message-ID | <mailman.6777.1498510601.4001.javagroups-users@lists.sourceforge.net> |
Hi, it seems to be time to migrate to 4.0.x! You've done a great job! I briefly read API changes in the blog and tried to port my app. Everything ok, except two things. 1. In the app. I combined a message receiver and a rpc-dispatching. So, in 4.0.x I haven't seen the way to use it with one channel. The following code doesn't work anymore: class MembershipService extend ReceiverAdapter .... channel = new JChannel(...); channel.setDiscardOwnMessages(true); channel.setName(name); channel.setReceiver(this); dispatcher = new RpcDispatcher(channel, this); dispatcher.setMethodLookup(methods::get); dispatcher.setMembershipListener(this); channel.connect(CLUSTER_NAME); channel.getState(null, 10000); When the rpc-disptching is active, messages are not received by the MembershipService. So, how is it possible to combine it? 2. Another minor problem, Address type is not serializable anymore. ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ javagroups-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/javagroups-users