Glassfish, built-in RESTful EJB interface in addition to SOAP

I'm currently studying Glassfish, and I see that you can add the @WebService annotation (javax.jws.WebService) and the container will automatically enable the SOAP web service for the specific bean. Since I'm not very interested in using SOAP, I was wondering if this could be done using the built-in server functions, but for a RESTful service, without explicitly writing my own.

thanks

0
source share
1 answer

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

+1
source

Source: https://habr.com/ru/post/1437195/


All Articles