Is there an equivalent to @WebContext for JAX-RS?

Solution Verified - Updated -

Issue

  • Currently, in our application we use @WebContext to set a different contextRoot for webservices. Is there an equivalent annotation for JAX-RS?
  • Is there a way to remove the application name from the URL of a REST endpoint?

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x
  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.