I'm running some unit tests that create both client and server in the same VM.
I see that Jboss/Remoting is smart enough to not send messages over the wire if it detects this - it uses intra-VM calls when both client and server are in the same VM (via MicroRemoteClientInvoker it seems).
However, in this particular unit test, I think its screwing me up.
Is there some way I can force JBoss/Remoting to send the commands over the wire (not use the short-circuiting intra-VM MicroRemoteClientInvoker stuff) even if the client and server are in the same VM?
HashMap clientConfig = new HashMap(); clientConfig.put(InvokerLocator.FORCE_REMOTE, "true"); Client client = new Client(serverLocator, clientConfig); client.connect();