0

I am in the middle of developing my first GWT application which will consume data from a RESTful API.

What I am trying to figure out is the best way to structure my entire application. Should the GWT client side make contact with Java server-side which then contacts the API or should GWT itself just contact the API directly?

I have been watching Ray Ryan at Google I/O 2009 and his stuff makes a lot of sense but I am not sure if I am adding in a whole unnecessary layer by having Java server-side code when it could just contact the API directly.

Thanks in advance.

1 Answer 1

1

Take a look at Restlet, which has a hybrid approach: it supports both REST(JSON, XML) and GWT serialization in the same package. So you don't have to write two different backend RPC layers.

http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html

Sign up to request clarification or add additional context in comments.

1 Comment

Thanks - I have built my API in Restlet but completely missed the GWT serialization part!

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.