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


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

      public class MyWebService
      public void doSomething(){...}

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


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


      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.