Google App Engine中的JAX-RS服务 [英] JAX-RS services in Google App Engine

查看:132
本文介绍了Google App Engine中的JAX-RS服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个使用某些REST服务并依次提供Web服务的Google App Enigne应用程序.我正在使用GAE Eclipse插件.我有两个问题:

I'm developing a Google App Enigne application that uses some REST services and offers in turn web services. I'm using the GAE Eclipse plugin. I have 2 questions:

  1. 如今与GAE一起使用的最佳JAX-RS库是什么?我想使用Jersey是因为我知道它是最标准"的库(不是吗?),但是我可以原则上使用任何库...我一直在寻找文档,但是我只发现了一些仅适用于旧版Jersey等的博客中的示例.

  1. What is the best JAX-RS library to use with GAE nowadays? I'd like to use Jersey because I understand is the most "standard" library (isn't it?), but I could use any in principle... I've been looking for documentation, but I've only found some samples in blogs that only work with old versions of Jersey, etc...

对于我必须提供的Web服务,我也考虑过使用JAX-RS,但是现在我不确定这是否是最好的选择...

For the web services I have to offer, I thought of using JAX-RS as well, but now I'm not sure if it's the best option...

推荐答案

您可以使用Jersey 1.5.您可以在 http://code.google.com上查看将在GAE上运行的所有框架. /p/googleappengine/wiki/WillItPlayInJava

You can use Jersey 1.5. You can see all frameworks that will play on GAE at http://code.google.com/p/googleappengine/wiki/WillItPlayInJava

但是,GAE已在1.7.5版上实现了作为实验性服务端点,即长期服务.检查 https://developers.google.com/appengine/docs/java/endpoints/

But GAE has realized on version 1.7.5 as experimental service Endpoints which in term are rest service. Check https://developers.google.com/appengine/docs/java/endpoints/

对于Web服务,我不知道您是否指肥皂服务..JAX-RS是rest服务的规范,相反,您应该使用JAX-WS,我不尝试与该规范兼容.

For web service I don't know if you mean soap service..JAX-RS is the specification for rest service, instead you should use JAX-WS I don't try the compatibility with this specification.

这篇关于Google App Engine中的JAX-RS服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆