When should I use RequestFactory vs GWT-RPC?

前端 未结 8 1861
星月不相逢
星月不相逢 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:06

    I think it's really helpful if you have a heavy pojo on the client side, for example if you use Hibernate or JPA entities. We adopted another solution, using a Django style persistence framework with very light entities.

    0 讨论(0)
  • 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.

    0 讨论(0)
提交回复
热议问题