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

Automatically register rx in server customizations

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.2
    • 3.2.3, 3.2.4
    • JAX-RS
    • None
    • Unknown

    Description

      Presently to register reactive for server components, you need to add this logic:

       

      ReactorInvoker invoker = new ReactorInvoker();
      invoker.setUseStreamingSubscriberIfPossible(false);
      jaxrsServerFactoryBean.setInvoker(invoker);
      StreamingResponseProvider<?> streamProvider = new StreamingResponseProvider<>();
      streamProvider.setProduceMediaTypes(Collections.singletonList("application/json"));
      jaxrsServerFactoryBean.setProvider(streamProvider);

       

      This ideally should be automated, and auto discovered when deployed to a server.

      Attachments

        Activity

          People

            johndament John D. Ament
            johndament John D. Ament
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: