John D. Ament created CXF-7631:
----------------------------------

             Summary: Automatically register rx in server customizations
                 Key: CXF-7631
                 URL: https://issues.apache.org/jira/browse/CXF-7631
             Project: CXF
          Issue Type: Improvement
          Components: JAX-RS
    Affects Versions: 3.2.2
            Reporter: John D. Ament
            Assignee: John D. Ament


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

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

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



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to