[jbosstools-issues] [JBoss JIRA] (JBIDE-13309) New Restful Webservice wizard shouldn't change web.xml by default

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Mon Dec 17 06:40:09 EST 2012


     [ https://issues.jboss.org/browse/JBIDE-13309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Xavier Coulon updated JBIDE-13309:
----------------------------------

    Assignee: Xavier Coulon  (was: Brian Fitzpatrick)

    
> 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.1.x
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list