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

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.2.0.Beta2
    • 4.0.0.Final
    • webservices
    • None

      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.

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

              Created:
              Updated:
              Resolved: