[jgroups-users] RpcDispatcher does not invoke remote method

Questions/problems related to using JGroups <[email protected]> Thu, 13 Jul 2017 08:20:59 -0700 (MST)
Newsgroups gmane.comp.java.javagroups.general
Message-ID <mailman.26609.1499959266.24383.javagroups-users@lists.sourceforge.net>
I have an RPC (async call) which unicasts the message to another node in the
cluster. The method in the remote node is not invoked nor an exception is
received at the caller. When I try to broadcast the message the self node's
method is successfully called but the remote method isn't. I have overridden
the RequestHandler and I expect the handle method to be invoked at the
least. But this does not happen and there is no exception at the caller as
well. There are several other RPCs in the application but one in particular
has this issue.
This is the call that does not get invoked,
public void transferDump(DbSyncMetadata metadata, Queue<Address>
outOfSyncClients, byte[] buffer, int numOfBytes) throws Exception {
		RequestOptions requestOptions = new RequestOptions(ResponseMode.GET_NONE,
MAX_REQUEST_PROCESSING_TIME);
		requestOptions.setFlags(Flag.DONT_BUNDLE);
		requestOptions.setAnycasting(true);
		rpcDispatcher.callRemoteMethods(outOfSyncClients, "receiveDumpData", new
Object[] {metadata, buffer, numOfBytes}, new Class[] {DbSyncMetadata.class,
byte[].class, int.class}, requestOptions);
	}
The dispatcher makes use of fork channel. I get no exception with the fork
channel or the dispatcher.



--
View this message in context: http://jgroups.1086181.n5.nabble.com/RpcDispatcher-does-not-invoke-remote-method-tp11332.html
Sent from the JGroups - General mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot