/** * Same as calling invokeOneway(Object param, Map sendPayload, boolean clientSide) with * clientSide param being false and a null sendPayload. Therefore, client thread will not return * till it has made remote call. */ public void invokeOneway(Object param) throws Throwable { invokeOneway(param, null); }
/** * Same as calling invokeOneway(Object param, Map sendPayload, boolean clientSide) with * clientSide param being false. Therefore, client thread will not return till it has made * remote call. */ public void invokeOneway(Object param, Map sendPayload) throws Throwable { invokeOneway(param, sendPayload, false); }
public void makeInvocation(String locatorURI) throws Throwable { InvokerLocator locator = new InvokerLocator(locatorURI); System.out.println("Calling remoting server with locator uri of: " + locatorURI); Client remotingClient = new Client(locator); remotingClient.connect(); /** * Make oneway invocation. Since this is a oneway invocation, * the return is void. * * With this invokeOneway signature, it uses the current thread to execute * the invocation on the server and will not return until the invocation request * has been placed into a worker thread pool on the server. This ensures that * the call at least made it to the server. */ String payload1 = "Oneway call 1."; System.out.println("Making oneway invocation with payload of '" + payload1 + "'"); remotingClient.invokeOneway(payload1); /** * This call is the same as the one above, except the last parameter will * place the invocation request into a worker thread pool on the client and * return immediately. The worker thread will then make the invocation * on the remoting server (which means caller will not be aware if was a * problem making the actual invocation on the server). */ String payload2 = "Oneway call 2."; System.out.println("Making oneway invocation with payload of '" + payload2 + "'"); remotingClient.invokeOneway(payload2, null, true); }
invokeOneway(internalInvocation, callback.getRequestPayload(), serverSide);