Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13309

New Restful Webservice wizard shouldn't change web.xml by default

    XMLWordPrintable

Details

    Description

      We recommend the class-style activation of JAX-RS applications

      /**
       * 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 */
      }
      

      JBDS should offer this as the default approach.

      Attachments

        Issue Links

          Activity

            People

              xcoulon@redhat.com Xavier Coulon
              pmuiratbleepbleep Pete Muir
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: