0 Replies Latest reply on Oct 5, 2012 3:51 PM by fernando.rubbo

    There exists an equivalent @WebContext for JAX-RS?

    fernando.rubbo

      Currently, in our application we use @WebContext to set a different contextRoot for webservices. For example:

       

      @Stateless

      @SecurityDomain("test2")

      @WebService(name = "HelloSoap", portName = "HelloSoapPort", serviceName = "HelloSoap", targetNamespace = "http://com.test")

      @WebContext(contextRoot = "/ws", urlPattern = "/HelloSoap", secureWSDLAccess = false, authMethod = "BASIC", transportGuarantee = "NONE")

      public class HelloSoap { ... }

       

      There exists an equivalent annotation for JAX-RS?

      We need this because our web app has FORM_AUTH and we need to put all web services (JAX-WS and JAX-RS) as BASIC_AUTH.

       

      Thankyou in advance,

      Fernando Rubbo