Versions Compared

Key

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

...

GraalVM is becoming an increasingly popular target to deploy Apache CXF services. The most challenging deployments are the ones which bundle Apache CXF services and applications as native images. There are some limitations with that and there are certain improvements incorporated into Apache CXF recently to provide the way to overcome those.

JAX-RS Support

...

The Apache CXF's JAX-RS implementation does not rely on code generation and dynamic class loading at runtime. In many cases, producing GraalVM's native images is straightforward, assuming the benefits of the assisted configuration of native image builds could be taken of.

You may run into dynamic class generation and/or loading in a few cases:

  • when CDI (or other kinds of runtime instrumentation) is involved

Samples

JAX-WS Support

For many JAX-WS services which rely on Apache CXF and use its code-generation capabilities, producing GraalVM's native images is straightforward, assuming the benefits of the assisted configuration of native image builds could be taken of.

...

You may run into dynamic class generation and/or loading in a few cases:

  • when using JaxWsDynamicClientFactory (fully dynamic clients)
  • when using request / response wrappers and fault exception wrappers (which may not generated at build time)
  • when CDI (or other kinds of runtime instrumentation) is involved

Samples

...