Sending persisted JDO instances over GWT-RPC

前端 未结 6 2091
半阙折子戏
半阙折子戏 2020-12-24 07:30

I\'ve just started learning Google Web Toolkit and finished writing the Stock Watcher tutorial app.

Is my thinking correct that if one wants to persist a bus

6条回答
  •  萌比男神i
    2020-12-24 08:11

    Your assessment is correct. JDO replaces instances of Collections with their own implementations, in order to sniff when the object graph changes, I suppose. These implementations are not known by the GWT compiler, so it will not be able to serialize them. This happens often for classes that are composed of otherwise GWT compliant types, but with JDO annotations, especially if some of the object properties are Collections.

    For a detailed explanation and a workaround, check out this pretty influential essay on the topic: http://timepedia.blogspot.com/2009/04/google-appengine-and-gwt-now-marriage.html

提交回复
热议问题