Announcement Announcement Module
Collapse
No announcement yet.
How to customize name used by MBeanExporter Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to customize name used by MBeanExporter

    I have successfully exported auto-detected MBeans via the MBeanExporter. When I look at my MBeans via the VisualVM-MBean plugin in jvisualvm I see they are all under a parent node named "spring". Is there a way that this can be customized to identify my server better?

  • #2
    Can any one help with this question please?

    Comment


    • #3
      Have you tried what's described in the documentation ?

      Comment


      • #4
        Doh! My bad. Reading the documentation I was able to resolve the issue. I was using org.springframework.jmx.export.naming.MetadataNami ngStrategy as namingStrategy on MbeanExporter. I simply changed the annotations on my bean class to be:

        Code:
        @ManagedResource(objectName = "acme:name=MyManagedBean", description = "Bean that is exposed as MBean.")
        public class MyManagedBean {
        ...
        }
        What changed was the "acme:" prefix instead of what was a "spring:" prefix before. Now the jvisualvm MBean tab shows acme as the name of the root folder.

        Many thanks.

        Comment

        Working...
        X