Announcement Announcement Module
Collapse
No announcement yet.
Nested MBeans in JConsole Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nested MBeans in JConsole

    I've declared a bunch of Spring beans to be exported via the 'beans' Map of the MBeanExporter.

    The keys are all declared like:
    Code:
    ProjectName:name=SpringBeanName
    Which gives me a tree view of the MBeans like:
    Code:
    ProjectName
        SpringBeanName
    Is there a way to get a nicer tree view of the exported beans? Say I wanted:
    Code:
    ProjectName
        ComponentGroupName
            SpringBeanName
    Where both ProjectName and ComponentGroupName are folders in the MBean tree.

  • #2
    I think jconsole displays beans in a hierarchy according to their object name key properties (in order with the lowest level last), e.g.

    Code:
    ProjectName:group=ComponentGroupName,name=SpringBeanName
    This behaviour is specific to the jconsole, so if you are using another console in production it might not choose to show the view in the same way.

    Comment

    Working...
    X