【问题标题】:RPC 1.0 vs deRPC GWT-RPCRPC 1.0 与 deRPC GWT-RPC
【发布时间】:2012-04-11 10:46:10
【问题描述】:

我正在阅读一本关于 GWT(Google Web Toolkit)的书,其中作者引用了 RPC 1.O 和 deRPC 之间的区别。

在我的专业项目中,我们正在使用 RPC 调用:

com.google.gwt.user.client.rpc.RemoteService com.google.gwt.user.server.rpc.RemoteServiceServlet

在书中,作者预知了:

com.google.gwt.user.client.rpc.RemoteService.RpcService(扩展 RemoteService) com.google.gwt.rpc.server.RpcServlet(扩展了 AbstractRemoteServiceServlet)

然而,RpcService 和 RpcServlet 都是 javadoc 标记的:

“实验性的,可能会发生变化。不要在生产代码中使用它。”

那么,基本上,有人使用 RpcService 和 RpcServlet 吗?它们之间有什么区别?

有关详细信息,请参阅 StackOverflow 上的此链接:When should I use RequestFactory vs GWT-RPC?

【问题讨论】:

    标签: gwt gwt-rpc


    【解决方案1】:

    来自 GWT official 项目页面(在底部):

    This feature did not work out as planned, and the GWT team strongly discourages its use. Try the Request Factory feature when you have non-trivial server-domain objects.

    所以最好不要使用 deRPC。

    【讨论】:

    • 很好,我没有看到这个 RequestFactory 功能。看起来不错!
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-06-11
    • 2014-11-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-09-24
    • 1970-01-01
    相关资源
    最近更新 更多