Glassfish built in RESTful EJB interface in addition to SOAP

二次信任 提交于 2019-12-25 05:22:29

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/12654579/glassfish-built-in-restful-ejb-interface-in-addition-to-soap

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!