cordova - Reusing server code in a GWT+phonegap app avoiding RPC -
cordova - Reusing server code in a GWT+phonegap app avoiding RPC -
we create mobile version of our web page. in page have used rpc services in service way, not totally entity oriented. going have 2 clients (web , mobile) calling 1 server.
now want reuse server code supporting several client versions , avoiding "dto version hell" rpc calls have.
i have seen need create wrapper, layer in server, exposing methods mobile versions (gwt+phonegap , in future: ios, android...). later layer reuse server code (model, repositories... etc), in server access bigtable done through objectify.
which technology utilize new layer?
for mobile apps utilize autobeans + requestbuilder on client , autobeans , restful api (also) produces json on server side.
with autobeans define construction of info java interfaces. (which gives programme against) , autobeans handles conversion object json , json object on server , on client well.
in combination can build fast , architectured rpc. autobeans used requestfactory default mechanism serialization.
if ever decide back upwards other platforms can still utilize json , parse there. if decide back upwards native android application autobean mechanism should run fine on android vm.
a illustration autobeans can found here: http://code.google.com/p/google-web-toolkit/wiki/autobean
gwt cordova gwt-rpc objectify mgwt
Comments
Post a Comment