Skip to content

Live hovers do not work when "spring.jmx.default-domain" is set to an alternate value. #44

Closed

Description

@tkvangorder

We have an application that sets the default JMX domain to our company prefix "com.build". Since STS4 is using JMX to provide the live hover support, it does not find any of the actuator endpoints because they are under a different domain. I am not sure you can detect the domain on startup (probably not), so this might just be a configuration property that is added to the tool: "Actuator JMX Domain" or maybe just something that is added to the documentation.

I was able to work around the problem by setting the "endpoints.jmx.domain" back to "org.springframework.boot".

Activity

  1. added this to the 4.0.0.M11 milestone on Mar 18, 2018
  2. spring-projects-issues commented on Apr 24, 2018

    @spring-projects-issues

    (comment in Pivotal Tracker added by Nieraj Singh:)

    Pushed some changes to SpringBootApp that take into account other domains used for Spring Boot Actuator in JMX.

    To test:

    Test 1:
    Ensure live hovers for app with default domain, org.springframework.boot , works fine

    Test 2:
    Stop the app, add applications.properties to the app's src/main/java default package, and add the following property:
    spring.jmx.default-domain=com.my.app.
    Should get live hovers.

    Note that this test does not require restarting the LS. Switching domains should work with the same editor opened, as domains affects live information from running apps. Just need to restart the app with a different domain in application.properties

  3. spring-projects-issues commented on Apr 24, 2018

    @spring-projects-issues

    (comment in Pivotal Tracker added by Nieraj Singh:)

    One additional note: use jconsole to inspect the MBeans and ensure that the changed spring jmx domain has been used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions