JBoss Service POJO does not work

Solution Verified - Updated -

Issue

I tried to create an MBean using the Service POJO approach according to the JBoss Manual.

After the deployment of the service I neither found the service in the JMX-console nor got an error during the deployment. Isn't this feature available in the EAP version we're using?

Here's the code:

// the implementing class

@Service(objectName="test:service=TestService")
@Management(TestServiceManagement.class)
public class TestServiceMBean implements TestServiceManagement {

// Implementation follows here

}

Environment

JBoss Enterprise Application Platform (EAP)

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