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.