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 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.