Pixar21
Pixar21

Reputation: 79

How to configure Restlet for Google AppEngine

I am trying to create a restful web service using restlet running on Google AppEngine using Eclipse as the java editor. Some hours of googling, reading message, etc. and I'm nowhere further forward in configuring this. The articles have to be there but finding them is hard.

Would anyone have a simple (exactly what to do, what files to copy, etc.) tutorial for setting this up?

Thanks

Upvotes: 0

Views: 1785

Answers (3)

Abel Callejo
Abel Callejo

Reputation: 14949

I'm currently on the same situation as you are. All I can say is that there's a lot to work on to successfully implement Restlet on AppEngine. What you need to do is

  1. Download the most stable version of Restlet for Google App Engine.
  2. Extract the compressed file into an easy-to-remember location
  3. Navigate to the Restlet libraries directory. For example, if the extraction location is /opt/restlet then go to /opt/restlet/restlet-gae-[version]/lib
  4. You should be able to find there the java packages org.restlet.jar and org.restlet.ext.servlet.jar.
  5. Copy those two packages and paste it into your [gae-project]/war/WEB-INF/lib
  6. Using your Eclipse, refresh the lib directory of your GAE project
  7. Select the newly added jar packages > Right Click > Build Path > Add to Build Path

Then after that all you need to do is to follow the Restlet Edition for Google App Engine Tutorial.

It should do the trick.

Edit: Due to this question, I created a Tutorial for Integrating Restlet to App Engine.

Upvotes: 1

Jon Ramvi
Jon Ramvi

Reputation: 724

On a side note, Google's own implementation of REST is called App Engine Endpoints: http://endpoints-trusted-tester.appspot.com/ It's still in beta, but it's easy to get access.

Upvotes: 1

Ankur Jain
Ankur Jain

Reputation: 1404

Well you can go through this tutorial Reslet With GAE.

Here is also one more example Another Example.

Its very simple thing, just put the necessary jars on the build path ie under WEB-INF/lib, and start your application.

Upvotes: 1

Related Questions