JBoss Community

How to determine URL of JAX-RS web services?

created by Andreas Wuttke in JBoss AS 7 Development - View the full discussion

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

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community