0 Replies Latest reply on Dec 21, 2011 6:23 AM by awuttke

    How to determine URL of JAX-RS web services?

    awuttke

      Hello,

       

      in order to register our REST-based web services on startup in a service registry we have to determine the correct URL of them. Is there a way to query the base URL of a service somehow?

       

      The services have annotations like the following:

       

      @Path("rest")

      public interface IDemoService

      {

        @GET

        @NoCache

        @Path("/")

        @Produces({ MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON })

        public RESTWsDescription getDescription() throws BaseException;

        ...

      }

       

      Thanks for any hint,

      Andreas