On Wednesday, December 4, 2013 2:12:05 PM UTC+1, salk31 wrote:
>
> Sorry if I'm being thick but is it possible to have a pure Java 
> RequestFactory client? So no JavaScript engine...
>

Yes.

You can use the UrlRequestTransport for a pure-Java RequestTransport built 
on top of HttpURLConnection. Everything else uses super-source so it works 
equally well in a JVM (using org.json under the hood) and in a GWT context 
(using JsonUtils.safeEval, and custom code for the serialization part; this 
is all abstractized behind the Splittable interface).
 

> I initially wanted to do this to do some stress testing and now I'd like 
> to know if it could be a candidate for the protocol for a remote Java 
> client to our system (we would control both ends so just want 
> cheapest/simplest thing).
>

Have a look at 
https://gwt.googlesource.com/gwt/+/2.6.0-rc2/user/test/com/google/web/bindery/requestfactory/server/RequestFactoryJreTest.java
 for 
an example using UrlRequestTransport, and 
https://gwt.googlesource.com/gwt/+/2.6.0-rc2/user/test/com/google/web/bindery/requestfactory/vm/RequestFactoryJreSuite.java
 for 
an example of "stress-test" using the existing unit-tests.

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to