Results 1 to 2 of 2

Thread: Nested MBeans in JConsole

  1. #1

    Default 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. #2
    Join Date
    Jun 2005
    Posts
    4,232

    Default

    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •