Uploaded image for project: 'Aries'
  1. Aries
  2. ARIES-2054

@JaxrsApplicationSelect is ignored

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Invalid
    • jax-rs-whiteboard-2.0.0
    • None
    • jax-rs-whiteboard
    • None

    Description

      JaxrsApplicationSelect annotation (or equivalent osgi.jaxrs.application.select property) is ignored by JAX-RS Whiteboard 2.x. The same code works fine with versions 1.0.x and 1.1.0.

      Sample:

      @Component(service = TestResource.class, scope = ServiceScope.PROTOTYPE)
      @Path("test")
      @JaxrsResource
      @JaxrsApplicationSelect("(" + JaxrsWhiteboardConstants.JAX_RS_NAME + "=" + MyApplication.NAME + ")")
      public class TestResource {
      //...
      }
      
      @Component(service = Application.class)
      @JaxrsName(MyApplication.NAME)
      @JaxrsApplicationBase("/my")
      public class MyApplication extends Application {
      
          public static final String NAME = "my-app";
      }
      
      @Component(service = Application.class)
      @JaxrsName(OtherApplication.NAME)
      @JaxrsApplicationBase("/other")
      public class OtherApplication extends Application {
      
          public static final String NAME = "other-app";
      }

      TestResource is exposed by all applications including default one (/my/test, /other/test, /cxf/test).

      Attachments

        Activity

          People

            Unassigned Unassigned
            borcsokj Börcsök József
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: