What about if your Spring bean at creation
creates some wrapper mbean which depends on HASingletonController,
installs it in MBeanServer,
and that wrapper delegates all the work to original Spring bean.
that was what i meant with the second solution ;-)
I will try that one.
Thanks for the (really fast) response