THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Alternatively, the MetricsFeature could be supplied directly to JAX-WS endpoint, for example:
|
Client
The client integration is no different from the server and uses the same MetricsFeature feature.
Code Block |
---|
final Bus bus = ...; /* MetricRegistry instance is taken from Bus instance */
final MetricsProvider metricsProvider = new CodahaleMetricsProvider(bus);
final JaxWsClientFactoryBean factory = new JaxWsClientFactoryBean();
factory.setFeatures(Arrays.asList(new MetricsFeature(new CodahaleMetricsProvider(bus))));
... |
Integration with JAX-RS
Server
...