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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content