【问题标题】:How can I expose camel mbean in spring boot?如何在春季靴子中暴露骆驼mbean?
【发布时间】:2020-04-03 01:05:03
【问题描述】:

我正在将应用程序从 2.23.2 迁移到 3.1.0 版本。

应用程序运行良好,有 2 条路线。

但是 mbean 没有暴露在 jconsole 中。

jconsole 中有基本的 mbean。

- JMI实现

- com.sun.management

- com.zaxxer.hikari

- 连接器

- java.lang

- java.nio

- java.util.logging

- javax.management.remote.rmi

- org.apache.logging.log4j2

- org.springframework.boot

我该如何处理这个问题?

【问题讨论】:

    标签: spring-boot apache-camel jmx


    【解决方案1】:

    您需要为您的项目添加camel-management 的依赖项。例如:

    <dependency>
      <groupId>org.apache.camel</groupId>
      <artifactId>camel-management</artifactId>
      <version>3.1.0</version>
    </dependency>
    

    Camel 3.x 升级指南中对此有说明:

    https://camel.apache.org/manual/latest/camel-3x-upgrade-guide.html#_spring_boot_jmx

    【讨论】:

      猜你喜欢
      • 2017-12-03
      • 1970-01-01
      • 1970-01-01
      • 2016-02-11
      • 2015-10-19
      • 1970-01-01
      • 2023-03-26
      • 2021-09-05
      • 2018-04-09
      相关资源
      最近更新 更多