Java上的RESTful应用程序

Java上的RESTful应用程序

本文介绍了Google App Engine Java上的RESTful应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Google App Engine上创建一个RESTful应用程序。我想提供XML和JSON服务。我简单地尝试了Restlet,Resteasy和Jersey。除了Restlet中的一些简单示例,我还没有取得任何成功。



您可以分享您在Google App Engine上创建Restful Web应用程序的经验吗? Java或提供任何洞察GAE上述工具包?



谢谢!



编辑(2009-07- 25):

我决定暂时使用Restlet。它似乎迄今为止工作完美无瑕。请发布您可能拥有的任何其他见解/意见。你遇到了什么问题?你在GAE / J上成功使用过Jersey / Restlet / Resteasy吗?如果是这样,我们希望听到它!

解决方案

我很高兴地报告说,Restlet M3在AppEngine 1.2上无可匹敌地工作。 2。我遵循。

所以,在我看来,Restlet是GAE / J Restful应用程序的答案。

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!

解决方案

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.

这篇关于Google App Engine Java上的RESTful应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 02:01