[jboss-dev-forums] [JBoss AS 7 Development] - How to determine URL of JAX-RS web services?

Andreas Wuttke do-not-reply at jboss.com
Wed Dec 21 06:23:28 EST 2011


Andreas Wuttke [http://community.jboss.org/people/awuttke] created the discussion

"How to determine URL of JAX-RS web services?"

To view the discussion, visit: http://community.jboss.org/message/642651#642651

--------------------------------------------------------------
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
[http://community.jboss.org/message/642651#642651]

Start a new discussion in JBoss AS 7 Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111221/a43525bf/attachment.html 


More information about the jboss-dev-forums mailing list