RPC design question

27 views
Skip to first unread message

George Agiasoglou

unread,
Aug 18, 2011, 11:43:03 AM8/18/11
to google-we...@googlegroups.com
Hi there, 

I have to run an rpc call before any other rpc call. So far I have managed to centralize Rpc to handle showing loading widgets.

What is your suggestion?


Thanks,
George

Juan Pablo Gardella

unread,
Aug 18, 2011, 11:48:54 AM8/18/11
to google-we...@googlegroups.com
I recommend apply Command Pattern. So you'll have only one servlet listen rpc request. So there you can perform some operations around any rpc request.


PD: Check gwt-dispatch and gwt app architectures best practices page 20

2011/8/18 George Agiasoglou <George.A...@newsint.co.uk>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/l3BMvwEcIC0J.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

Erik

unread,
Aug 18, 2011, 4:48:27 PM8/18/11
to Google Web Toolkit
You can run the other RPC call('s) in the callback of the first one.

greetz.

On 18 aug, 17:43, George Agiasoglou <George.Agiasog...@newsint.co.uk>
wrote:

Ahmet Dakoglu

unread,
Aug 19, 2011, 2:13:53 AM8/19/11
to google-we...@googlegroups.com
Erik's idea makes sense, just run other rpc in onSucces method of the first one

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.




--
Ahmet DAKOĞLU

Reply all
Reply to author
Forward
0 new messages