I'm experimenting with dynamically creating mbeans, which represent existing objects created by a framework used in my application. These objects exist in a conceptual hierarchy, like a folder hierarchy. If I just create the mbeans with their associated folder path, I end up with a big domain with lots of objects.
It would be very nice if my JMX viewer (presently VisualVM) could see "subfolders" of the domain associated with the folder hierarchy of these objects.
Is there some way to specify the domain or name property of the mbean so that the JMX viewer would see a hierarchy of these objects, instead of just a big flat list?