Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JMX support for Spring Boot 3 applications #2189

Closed
ChristophEbbers opened this issue Jan 3, 2023 · 2 comments
Closed

JMX support for Spring Boot 3 applications #2189

ChristophEbbers opened this issue Jan 3, 2023 · 2 comments

Comments

@ChristophEbbers
Copy link

As Jolokia support has been dropped in Spring Boot 3, there is currently no easy way to access JMX feature in Spring Boot Admin.

Can this be in enhanced?

@erikpetzold
Copy link
Member

Hi @ChristophEbbers

Spring Boot Admin can only show what Spring Boot offers.
Spring Boot 3.0 cannot support Jolokia, as Jolokia does not yet support the jakarta package names.

To fix that

  • First Jolokia would need to support the jakarta namespace (Jakarta Servlet API 5.0+ jolokia/jolokia#451)
  • Then Spring Boot would need to support it again. From your link: "We hope to reinstate support as the ecosystem gradually adapts to the new package names in Jakarta EE 9."
  • Then it will be displayed in Spring Boot Admin (probably no change needed).

Besides that there is a bug in the frontend of Spring Boot Admin 3.0, so it does not show JMX menu entry even when the jolokia endpoint is available (e.g. on a Spring Boot 2.7 client application). We are currently fixing that.

@v3rm0n
Copy link

v3rm0n commented Aug 16, 2024

I think Jolokia works now on Spring Boot 3 if you add org.jolokia:jolokia-support-spring on the classpath, more info here https://jolokia.org/reference/html/manual/spring.html

erikpetzold added a commit that referenced this issue Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants