Versions Compared

Key

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

Table of Contents

Spring Boot Actuator

When the presence of the Spring Boot Actuator is detected, the application may benefit from metrics support auto-configuration (based on  Micrometer library). The instrumentation layer automatically (or programmatically) tracks the server-side metrics with respect to requests processing, and exposes it along with other metrics. For more details, please check Micrometer Integration documentation.

PropertyDescriptionDefault
cxf.metrics.enabledEnables or disables metrics auto-configurationtrue
cxf.metrics.jaxrs.enabledEnables or disables JAX-RS metrics auto-configurationtrue
cxf.metrics.jaxws.enabledEnables or disables JAX-WS metrics auto-configurationtrue
cxf.metrics.server.autoTimeRequests

Whether requests handled by CXF should be automatically timed.  If the number of time series emitted grows
too large on account of request mapping timings, set it to "false" and use @Timed or @TimeSet on a per
invocation basis as needed.

true
cxf.metrics.server.requestsMetricNameName of the metric for received requests (server-side)cxf.server.requests
cxf.metrics.server.maxUriTags

Maximum number of unique URI tag values allowed. After the max number of tag values is reached,
metrics with additional tag values are denied by filter.

100
cxf.metrics.client.requestsMetricNameName of the metric for sent requests (client-side)cxf.client.requests
cxf.metrics.client.maxUriTags

Maximum number of unique URI tag values allowed. After the max number of tag values is reached,
metrics with additional tag values are denied by filter.

100

Spring Boot CXF JAX-WS Starter

Features

...

Use "cxf.servlet.init" map property to customize CXFServlet properties such as "services-list-path" (available by default at  "/services"), etc.

Use "cxf.servlet.loadOnStartup" set loadOnStartup priority of the CXFServlet (by default, -1)

Use "cxf.servlet.enabled" enable/disable CXFServlet regsitration (since 3.3.12/3.4.5)

If needed, one can use Spring ImportResource annotation to import the existing JAX-WS contexts available on the classpath.

...

Publication of JAX-WS endpoints into well-known service registries such as Netflix Eureka Registry can be achieved similarly to the way JAX-RS endpoints are registered and is shown in a JAX-RS Spring Boot Scan demo.

Actuator

When the presence of the Spring Boot Actuator is detected, the application may benefit from metrics support auto-configuration (based on  Micrometer library). The instrumentation layer automatically (or programmatically) tracks the server-side metrics with respect to requests processing, and exposes it along with other metrics. For more details, please check Micrometer Integration documentation.

Examples

Consider the following Configuration instance:

...

Use "cxf.servlet.init" map property to customize CXFServlet properties such as "services-list-path" (available by default at  "/services"), etc.

Use "cxf.servlet.loadOnStartup" set loadOnStartup priority of the CXFServlet (by default, -1)

Use "cxf.servlet.enabled" enable/disable CXFServlet regsitration (since 3.3.12/3.4.5)

Use "cxf.jaxrs.server.path" property to customize a JAX-RS server endpoint address (default is "/").

...