Repository: cxf Updated Branches: refs/heads/3.1.x-fixes 556f7f6dd -> a7f1ff618
No need to have explicit activation of the metrics registry/jmx exporter given that MetricsFeature is auto-discovered, as discussed with Andriy Project: http://git-wip-us.apache.org/repos/asf/cxf/repo Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/a7f1ff61 Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/a7f1ff61 Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/a7f1ff61 Branch: refs/heads/3.1.x-fixes Commit: a7f1ff618c53cca7f35e16585486e0182b34309c Parents: 556f7f6 Author: Sergey Beryozkin <[email protected]> Authored: Thu Oct 20 12:21:01 2016 +0100 Committer: Sergey Beryozkin <[email protected]> Committed: Thu Oct 20 12:23:00 2016 +0100 ---------------------------------------------------------------------- .../java/sample/rs/service/SampleRestApplication.java | 14 -------------- 1 file changed, 14 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cxf/blob/a7f1ff61/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java ---------------------------------------------------------------------- diff --git a/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java b/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java index 17f6fb0..ca9c445 100644 --- a/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java +++ b/distribution/src/main/release/samples/jax_rs/spring_boot_scan/application/src/main/java/sample/rs/service/SampleRestApplication.java @@ -17,27 +17,13 @@ * under the License. */ package sample.rs.service; -import com.codahale.metrics.JmxReporter; -import com.codahale.metrics.MetricRegistry; - import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; import org.springframework.cloud.netflix.eureka.EnableEurekaClient; -import org.springframework.context.annotation.Bean; @SpringBootApplication @EnableEurekaClient public class SampleRestApplication { - @Bean - public MetricRegistry metricRegistry(){ - return new MetricRegistry(); - } - - @Bean(initMethod = "start", destroyMethod = "stop") - public JmxReporter jmxReporter(MetricRegistry metricRegistry) { - return JmxReporter.forRegistry(metricRegistry).build(); - } - public static void main(String[] args) { SpringApplication.run(SampleRestApplication.class, args); }
