]
Marián Labuda closed JBIDE-13309.
---------------------------------
Verified in JBDS 8.0.0.Beta2a build B106.
New Restful Webservice wizard shouldn't change web.xml by
default
-----------------------------------------------------------------
Key: JBIDE-13309
URL:
https://issues.jboss.org/browse/JBIDE-13309
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.0.0.Final
Reporter: Pete Muir
Assignee: Xavier Coulon
Fix For: 4.2.0.Beta2
We recommend the class-style activation of JAX-RS applications
{code}
/**
* A class extending {@link Application} and annotated with @ApplicationPath is the Java
EE 6
* "no XML" approach to activating JAX-RS.
*
* <p>
* Resources are served relative to the servlet path specified in the {@link
ApplicationPath}
* annotation.
* </p>
*/
@ApplicationPath("/rest")
public class JaxRsActivator extends Application {
/* class body intentionally left blank */
}
{code}
JBDS should offer this as the default approach.