Reverse RPC calls

566 views
Skip to first unread message

BlackDhalia

unread,
Jun 15, 2007, 6:39:27 AM6/15/07
to Google Web Toolkit
Hi,

I have a GWT application which can call methods from a java server
side app in the GWT server side code, e.g. if I want to get a users
name and address I just make an RPC call to my service on my GWT
server side code which then calls some standard java code in another
project which talks to dB and send me back the data.

What I would like to know though is the syntax for some external Java
code calling my GWT server side code and making a reverse RPC call to
my client. For example, a user has just updated their name and
address and my GWT client side code needs to be notified immediately.

Many thanks.

Michael Burns

unread,
Jun 15, 2007, 6:59:16 AM6/15/07
to Google Web Toolkit
'Reverse' RPC calls into a GWT client are not possible - what you
could do is provide a refresh button or have your client
poll the server at regular intervals to get the latest data.

BlackDhalia

unread,
Jun 15, 2007, 8:38:49 AM6/15/07
to Google Web Toolkit
Hi Michael, thanks for your reply. Are you sure there is not a server
push? I though GWT encompassed this. Polling is not really an option
for the kind of application I am creating.

Many thanks.

On 15 Jun, 11:59, Michael Burns <michaelbur...@gmail.com> wrote:
> 'Reverse'RPCcalls into a GWT client are not possible - what you


> could do is provide a refresh button or have your client
> poll the server at regular intervals to get the latest data.
>
> On Jun 15, 11:39 am, BlackDhalia <earthquakena...@gmail.com> wrote:
>
>
>
> > Hi,
>

> > I have a GWT application which cancallmethods from a java server


> > side app in the GWT server side code, e.g. if I want to get a users

> > name and address I just make anRPCcallto my service on my GWT


> > server side code which then calls some standard java code in another
> > project which talks to dB and send me back the data.
>
> > What I would like to know though is the syntax for some external Java
> > code calling my GWT server side code and making areverseRPCcallto
> > my client. For example, a user has just updated their name and
> > address and my GWT client side code needs to be notified immediately.
>

> > Many thanks.- Hide quoted text -
>
> - Show quoted text -

Reinier Zwitserloot

unread,
Jun 15, 2007, 8:52:30 AM6/15/07
to Google Web Toolkit

j3t

unread,
Jun 15, 2007, 11:15:56 AM6/15/07
to Google Web Toolkit
hi,

jstm4gwt is what you need. it will be released in the near furtue.

~j3t

On 15 Jun., 14:52, Reinier Zwitserloot <reini...@gmail.com> wrote:
> Server Push is -extremely- complex.
>

> Read:http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

j3t

unread,
Jun 15, 2007, 11:18:58 AM6/15/07
to Google Web Toolkit

Brill

unread,
Jun 17, 2007, 11:16:44 PM6/17/07
to Google Web Toolkit
Server push is not really server push in this case, the client must
still make a request to the server (this is HTTP after all).

There are ways to *reduce* the number of "polls" tot he server but my
understanding is that it can get hairy pretty quick.
Search the form for things like "comet" and s"server push" as there
has been quite a lot of information posted.

- Brill Pappin

Message has been deleted
Message has been deleted
Message has been deleted

BlackDhalia

unread,
Jun 27, 2007, 10:44:50 AM6/27/07
to Google Web Toolkit
Thanks, Luca Masini's example worked a treat.

Reply all
Reply to author
Forward
0 new messages