title: Invoke a GWT RPC service from Java directly
body: <p>Is there an easy way to invoke a GWT RPC service endpoint directly from Java code?  I mean real Java code, not Java code compiled down into javascript.</p>
  
  <p>I ask because we want to run performance benchmarks/stress tests against a GWT RPC interface.  I would like to write the test harness in Java and run it in a JVM (as opposed to javascript running in a browser).</p>
  
  <p>I figure there must be a way to do this because I assume GWT Hosted mode requires such functionality.  However, I can't really find any code in the GWT runtime that demonstrates how to cleanly do this.  I've looked at the com.google.gwt.user.client.rpc package but the stuff in there seems to use JSNI which obviously wouldn't be usable by pure Java.</p>