Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributeDescription

threadPoolSize

Specifies the number of threads available to the Netty instance for processing requests.

Anchor
netty_http2
netty_http2
HTTP/2 support

If HttpServerEngineSupport#ENABLE_HTTP2  bus property is set, Netty engine will enable the HTTP/2 support as well: HTTP/2 over cleartext (h2c) if TLS is not configured, regular HTTP/2 otherwise. It requires additional dependencies to be bundled by the application.

Code Block
xml
xml
<dependency>
    <groupId>io.netty</groupId>
    <artifactId>netty-codec-http2</artifactId>
    <version>${netty.version}</version>
</dependency>


Info

Please be aware that if you configure HTTP/2 + TLS, CXF right now only supports JDK SSL provider. 

Example: https://github.com/apache/cxf/tree/master/distribution/src/main/release/samples/jax_rs/basic_http2_netty

Example

The example below shows a configuration fragment that configures a Netty instance on port number 9001.

...