Home How to exclude calling class in JGroups RpcDispatcher calls

# How to exclude calling class in JGroups RpcDispatcher calls

BenjaminJC
1#
BenjaminJC Published in 2017-12-07 22:23:40Z
 I want a single class to invoke the same method in multiple other classes, without trying to do so on itself. For example, RpcDispatcher calling rsp_list = disp.callRemoteMethods(null, "print", new Object[]{10}, new Class[]{int.class}, opts); should not try and invoke print on itself, only the other channel members.
Bela Ban
2#
Bela Ban Reply to 2017-12-08 13:40:39Z
 You could use an exclusion list in RequestOptions passed to the call, or use TransientFlag.DONT_LOOPBACK (preferred, as more efficient). The transient flag is also set in RequestOptions.
 You need to login account before you can post.
Processed in 0.314741 second(s) , Gzip On .