Unable to register to a NotificationBroadcaster based on an @Service xmbean in JBoss EAP
Issue
-
We created an
NotificationBroadcasterMBean, using a@Serviceanntotation with an xmbean definition such as@Service(objectName="test:name=testmbean", xmbean="resource:META-INF/test-xmbean.xml") public class TestMBean extends NotificationBroadcasterSupport implements ITestMBeanEJB{...
But, attempting to register the listener results in
java.lang.IllegalArgumentException: The MBean test:name=testmbean
exists but does not implement the NotificationBroadcaster interface.
- Is there a way to get notifications to work using the
@Servicemethod?
Environment
- JBoss Enterprise Application Platform (EAP) 5.0.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.