I'd like to publish JMX notifications, but would like to avoid using the NotificationPublisherAware interface, since the code is also used by an application that doesn't use Spring. The bean is exposed using MBeanExporter bean.
Is there a way to avoid this interface but still publish notifications?