Can GWTP Rest Dispatch be used with REST Spring server backend?

430 views Asked by At

I've started to use GWTP framework. And I've noticed that it has his own implementation of Rest comunication. I've used to use GWT with RestyGWT And Spring server.

Now I wonder- can I use GWTP Rest Dispatch with Spring server?

Or should I stick with RestyGWT (which is not a part from GWTP).

I haven't found a word about it in official documentation of GWTP. And the example given have in shared package rest service interface, which is implemented on server side. Please help.

2

There are 2 answers

2
dunni On BEST ANSWER

GWTP REST Dispatch just calls REST URLs, so it doesn't care which implementation is behind the URL, as long as it's reachable by it and returns a proper response. So yes, you are totally fine to use Spring MVC, JAX-RS or anything else for your backend.

1
rndlaine On

You can definitely use Rest Dispatch with whatever backend you like. Take a look at this tutorial if you'd like more information on how to setup Rest Dispatch. This tutorial was also tested using the Python webapp2 web framework as backend.