Unable to register to a NotificationBroadcaster based on an @Service xmbean in JBoss EAP

Solution Unverified - Updated -

Issue

  • We created an NotificationBroadcaster MBean, using a @Service anntotation 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 @Service method?

Environment

  • JBoss Enterprise Application Platform (EAP) 5.0.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.