How can I call a GWT RPC method on a server from a non GWT (but Java) gapplication?

后端 未结 5 1093
感动是毒
感动是毒 2020-12-24 08:56

I have a regular Java application and want to access an GWT RPC endpoint. Any idea how to make this happen? My GWT application is on a GAE/J and I could use REST for example

5条回答
  •  Happy的楠姐
    2020-12-24 09:55

    Unfortunately, I think jarnbjo is right about having to reimplement the browser's half of the RPC mechanism.

    Alternately, if you end up having to write a REST interface for remote clients, you can switch your GWT app away from the RPCs and use the REST interface there too, and share your client library between the external clients and the GWT's client-side interface.

提交回复
热议问题