JMX MBeans in different packages
So to give some background, I have successfully been able to define an MBeanExporter bean in my Spring configuration that will auto-detect MBeans that implement my defined interface. In other words, if I have created an interface called "SuperMBean", then I can write a class called "Super" that implements "SuperMBean", and then "Super" gets automatically picked up and registered in the MBeanServer, at which point I can do whatever I want with it. Check.
However, I am running into a problem when my MBeans are located in different packages... Let me explain:
If I place both "Super" and "SuperMBean" in the my.domain.management package, all is well. But if I place "SuperMBean" in the my.domain.management package and then place "Super" in the my.domain.duper package, suddenly "Super" will no longer get auto-registered by the MBeanExporter bean, even though it is still implementing the interface. Is there a way around this, or am I simply doing something wrong?
Thanks!
JMX MBeans in different packages
Hi:
Poseidon cannot do that yet, but it is a very good idea. In fact, one would also like to create a package anywhere and tell Poseidon that in code generation, this resolves to a quite different package prefix.
This feature wont make it into the next version, however.
Best,
JvV