RESTful application on Google App Engine Java?

44,230

Solution 1

I'm happy to report that Restlet M3 works FLAWLESSLY on AppEngine 1.2.2. I have followed the "First steps" and "First resource" tutorials found http://restlet.com/technical-resources/restlet-framework/guide.

So, it seems to me that Restlet is the answer for your GAE/J Restful applications.

Solution 2

I'm using Jersey on GAE. Here is the link for those who are interested about setting it up: (I'm using GAE SDK v1.4.0):

http://tugdualgrall.blogspot.com/2010/02/create-and-deploy-jax-rs-rest-service.html

Solution 3

I am going to begin exploring this as well, but haven't started yet. I did find this framework, that says it should work, but like I said haven't tried it yet.

http://wiki.restlet.org/docs_1.2/13-restlet/275-restlet/252-restlet.html

If you get it working, or manage to get one of the above suggestions working, update everyone as I am sure there is interest in this.

Solution 4

I'm using Restlet together with Guice on Google AppEngine. IMHO they fit together very well. See my recent blog post for further details: http://haraldpehl.blogspot.com/2009/11/google-appengine-restlet.html

Solution 5

Since these valiant older solutions were patched together, Google has apparently supplied an Eclipse plugin to create a starter project that produces an App Engine app, an Android APK, and a Web app, all talking to one another over an interface defined by a single set of annotated object declarations.

Haven't tried this yet myself, but do have a look before trying any of the more heterogeneous examples described in the earlier messages above:

https://developers.google.com/eclipse/docs/appengine_connected_android

This Google video is also quite informative:

http://www.youtube.com/watch?v=NU_wNR_UUn4

Share:
44,230

Related videos on Youtube

JP Richardson
Author by

JP Richardson

https://www.exodus.com - all-in-one app to secure, manage and exchange blockchain assets like Bitcoin and Ethereum.

Updated on July 05, 2022

Comments

  • JP Richardson
    JP Richardson almost 2 years

    I would like to create a RESTful app on Google App Engine. I would like to provide XML and JSON services. I have briefly experimented with Restlet, Resteasy, and Jersey. I haven't had much success with any of them, other than some simple examples in Restlet.

    Could you share your experiences creating a Restful web application on Google App Engine using Java or provide any insight on the aforementioned toolkits on GAE?

    Thanks!

    Edit (2009-07-25):

    I have decided to use Restlet for the time being. It seems to work flawlessly so far. Please post any other insights/opinions you may have. What problems have you encountered? Have you successfully used Jersey/Restlet/Resteasy on GAE/J? If so, we want to hear about it!

    • Md. Sajedul Karim
      Md. Sajedul Karim over 8 years
      technicalrex.com/2014/08/11/… and javacodegeeks.com/2012/05/… are the best turorial about Jersey GAE integration.
    • Ankur Jain
      Ankur Jain almost 8 years
      Its a matter of choice of the framework we are used to in our development, I have been using Spring MVC with objectify as well Hibernate and it also work flawlessly on Google App Engine.
    • JP Richardson
      JP Richardson almost 8 years
      @AnkurJain yes, a lot changes in 7 years.
  • JP Richardson
    JP Richardson almost 15 years
    I'm pretty sure Restlet will work. It's just a bit nastier to use than the others. I particularly like the annotations that Jersey introduces. I plan on using Restlet within the next couple of weeks. I'll be sure to post an update.
  • broschb
    broschb almost 15 years
    I spent the weekend playing around with this as well, And Restlet works great on GAE. I was able to put something together following the example given on the Restlet site at the url I left previously that is now down. But it was trivial to set everything up.
  • broschb
    broschb almost 15 years
    I wrote a small post on my blog to answer another question on stackoverflow. It goes through a very basic example of getting restlet going on GAE. broschb.blogspot.com/2009/08/…
  • Josh
    Josh over 14 years
    Restlet now has a JAX-RS implementation. They've also begun distributing builds specifically for use on AppEngine. You'll want to use the latest 2.0 milestone (currently 2.0m4). I've just set this up as a proof of concept for a new app that's being built now. I would not recommend using Restlet's own API as it's radically generic, overly abstracted, and just generally confusing. restlet.org/downloads/2.0/restlet-gae-2.0m4.zip
  • Jasper
    Jasper about 14 years
  • JP Richardson
    JP Richardson about 13 years
    Play looks very impressive. However, its integration with GAE doesn't look like its maintained within the main project and thus lags behind GAE's release cycle. Its GWT plugin seems to lag even further. None the less, I'll give you an upvote for showing me such a cool project.
  • opensas
    opensas about 13 years
    the gae module was developed and is mantained by the main developer, siena module (recommended orm for gae, jpa has lots of troubles) is mantained by a very active member of the community, unfortunately the gwt module doesn't get that much attention in deed...
  • opensas
    opensas about 12 years
    gae module is back on track! another developer took charge of it, here's support fot gae 1.6 playframework.org/modules/gae-1.6.0/home
  • George Hawkins
    George Hawkins about 10 years
    The above link is now broken. The GAE relevant link for Restlet 2.2 is restlet.org/learn/guide/2.2/editions/gae
  • George Hawkins
    George Hawkins about 10 years
    The above link covers Jersey 1.1.5. The GAE team maintain notes on this and later versions here - code.google.com/p/googleappengine/wiki/WillItPlayInJava#Jers‌​ey
  • Marco Dinatsoli
    Marco Dinatsoli over 8 years
    i would like to ask you if u have any solution to my question here stackoverflow.com/questions/32699420/… thank u