Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6810

JAX-RS Client one way requests do not work with jms-transport

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.1.4, 3.1.5, 3.0.8
    • 3.1.6, 3.0.9, 3.2.0
    • JAX-RS
    • None
    • Unknown

    Description

      I'm trying to call a jax-rs service interface in a one-way fashion, using jms transport.

      I think this should work because of this documentation: http://cxf.apache.org/docs/jax-rs-advanced-features.html#JAX-RSAdvancedFeatures-Onewayinvocations

      There, i read that both the Oneway annotation and the "OnewayRequest" client header play a role.
      However, I didn't get it to work.

      I'm attaching junit tests where i basically iterate through these threee variables:

      • header "OnewayRequest" set/not set
      • calling a method anotated/not annotated with "Oneway"
      • calling a method returning Result vs. calling a void method
        => i.e. 8 individual tests

      From those scenarios, only the two ones with "OnewayRequest not set" that call a not-annotated method work as i would have expeced.

      Basically with "Oneway" i get a java.lang.NullPointerException at org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:398)

      and with the header being set i eventually get a client timeout.

      So there might be two issues, or i'm getting something wrong with the config, but probably there is something to fix here..

      Best regards, Tobias

      Attachments

        1. cxf-jms-oneway-issue.zip
          21 kB
          Tobias Schöneberg

        Activity

          People

            sergey_beryozkin Sergey Beryozkin
            t.schoeneberg Tobias Schöneberg
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: