除了SOAP之外,Glassfish还构建在RESTful EJB接口中 [英] Glassfish built in RESTful EJB interface in addition to SOAP

查看:121
本文介绍了除了SOAP之外,Glassfish还构建在RESTful EJB接口中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在学习Glassfish,我发现可以添加注释@WebService(javax.jws.WebService),容器将自动为特定的bean启用SOAP Web服务。由于我对使用SOAP没有真正的兴趣,所以我想知道是否可以使用服务器内置功能来完成同样的工作,但对于REST风格的服务而言,如果没有明确写出我自己的功能,也是如此。



JAX-RS(标准版)和Jersey(这个标准的一个实现)就是你正在寻找的东西。

感谢 对于。查看Jersey网站上的文档: http://jersey.java.net/ 。您还可以在Netbeans网站上找到教程。


I am currently learning Glassfish and I see that it is possible to add the annotation @WebService (javax.jws.WebService) and the container will automatically enable a SOAP web service for the particular bean. Since I am not really interested in using SOAP, I was wondering if the same can be accomplished using the server built-in functionality but for a RESTful service, without explicitly writing my own.

Thanks

解决方案

JAX-RS (the standard) and Jersey (one implementation of this standard) is what you are looking for. Have a look at the Jersey site for documentation: http://jersey.java.net/. You will also find tutorials on the Netbeans site.

这篇关于除了SOAP之外,Glassfish还构建在RESTful EJB接口中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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