Search code examples
javajerseyhelidon

Configure Jersey in Helidon MP


I'd like to set the configuration property org.glassfish.jersey.server.ServerProperties.UNWRAP_COMPLETION_STAGE_IN_WRITER_ENABLE of Jersey to true.

I've read the Helidon documentation about configuring the server and tried to add the following to my microprofile-config.properties:

jersey.config.server.unwrap.completion.stage.writer.enable=true

But it looks like it is not accepted. How do I correctly set a configuration property for Jersey in Helidon MP?


Solution

  • In Helidon MP version 2.4.0, you'll need to follow Jersey's instructions for integrating with MicroProfile Config, bearing in mind that Helidon's MicroProfile Config implementation will already be taken care of so there's no need to duplicate that dependency.

    In my opinion Helidon should take care of this for you, but in version 2.4.0 at least it does not.