When should I use RequestFactory vs GWT-RPC?

前端 未结 8 1879
星月不相逢
星月不相逢 2020-12-04 06:17

I am trying to figure out if I should migrate my gwt-rpc calls to the new GWT2.1 RequestFactory cals.

Google documentation vaguely mentions that RequestFactory is a

8条回答
  •  执笔经年
    2020-12-04 07:11

    I find the idea of creating Proxy classes for all my entities quite annoying. My Hibernate/JPA pojos are auto-generated from the database model. Why do I now need to create a second mirror of those for RPC? We have a nice "estivation" framework that takes care of "de-hibernating" the pojos.

    Also, the idea of defining service interfaces that don't quite implement the server side service as a java contract but do implement the methods - sounds very J2EE 1.x/2.x to me.

提交回复
热议问题