Is it possible to run remote calls to two different methods in the same thread in Java RMI?
<p>Suppose that Remote <code>class RemoteServer</code> has two remote methods <code>method1</code> and <code>method2</code>.</p>

<p>Is it possible to run the remote calls to these two methods <em>in the same thread</em> of the server in Java RMI?</p>

<p>It is known that <code>method1</code> will be called first.</p>

<hr>

<p>I have read <a href="http://docs.oracle.com/javase/6/docs/platform/rmi/spec/rmi-arch3.html" rel="nofollow">"Thread Usage in Remote Method Invocations" (below)</a> and have no ideas.</p>

<blockquote>
  <p>A method dispatched by the RMI runtime to a remote object implementation may or may not execute in a separate thread. The RMI runtime makes no guarantees with respect to mapping remote object invocations to threads.</p>
</blockquote>