I've implemented a Hello World stateless session bean with REST annotations
If I deploy the EJB JAR alone, no web context exists and it is inaccessible
I create an empty WAR project, and then I encapsulate the EJB-JAR and WAR files into an EAR, and I can then access the service using http://localhost:8080/warproject/path/hello
My question is: do I really need to have that empty WAR file at all? Is it not possible for the container to dynamically bind the REST service to the HTTP connector as http://localhost:8080/ejb-jar-project/path/hello ?
A while back there was a question if a JAX-WS endpoint could be deployed as a module and I got the picture that it was possible, I'm not sure if the same is true for JAX-RS ...