Synchronous GWT-RPC calls?

41 views
Skip to first unread message

Dan Billings

unread,
Aug 3, 2010, 11:44:10 AM8/3/10
to gwtrpccommlayer
From your Google Blog post:

---SNIP
//STEP 1: create the URL that points to your service/servlet
URL url = new URL("http://127.0.0.1:8888/example/greet");

//STEP 2: create an instance of GwtRpcCommLayerClient
GwtRpcCommLayerClient client = new GwtRpcCommLayerClient(url);

//STEP 3: ask the client for a reference to the client-side proxy of
your remote service
GreetingService stub =
(GreetingService)
client.createRemoteServicePojoProxy(GreetingService.class);

//STEP 4: any call you execute against this proxy will ultimately
execute on your servlet
String echoResponse = stub.greetServer("hello world");

--/SNIP

Is this not a synchronous call to greetServer? Can you confirm that
it makes Asynchronous calls as well?

jeff mchugh

unread,
Aug 3, 2010, 3:25:30 PM8/3/10
to gwtrpccommlayer
Hi Dan -

I have just added new code to the library that makes it possible to
execute the calls in an asynchronous mode.
Please get the latest 1.1 version of the jar and/or eclipse project.

Everything has been committed into SVN.

The example.test.Main class now has example code for both modes:
synch and asynch

Look forward to your feedback.

/jeff mchugh

Dan Billings

unread,
Aug 3, 2010, 4:05:53 PM8/3/10
to gwtrpccommlayer
Many thanks Jeff! I'll give it a shot as soon as I can, probably
this weekend.
Reply all
Reply to author
Forward
0 new messages