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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content