3 Replies Latest reply on May 14, 2008 4:44 AM by Samuel POSSEME

    setting context root for EJB based web services

    Gabriel Bermudez Newbie

      Hello,

      I have a very simple web service annotated with @Stateless and @WebService

      @Stateless
      @WebService
      public class MyWebService
      {
      public void doSomething(){...}
      }

      when I deploy just the service.jar file the web service's endpoint is

      http://localhost:8080/service/MyService

      but if I put the jar inside the myear.ear file the web context changes

      http://localhost:8080/myear-service/MyService

      I have read here that since version 4.0 you can set the web service's context root by simply adding
      webservice-context-root to the jboss.xml file, but there is no example on how to do this. I would like to set the context root just to "service".

      Thanks for all your help.