How to access JMX API in JBoss EAP 4.x / 5.x

Solution Verified - Updated -

Issue

  • How to create a JMX client java application for monitoring JBoss EAP 4.x / 5.x
  • How to deploy programmatically applications via JMX API
  • While trying to access JMX Mbean using java client it fails with exception:
java.lang.SecurityException: Failed to authenticate principal=null, securityDomain=jmx-console
    at org.jboss.jmx.connector.invoker.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:89)
    at org.jboss.mx.server.Invocation.invoke(Invocation.java:90)

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.x
    • 5.x

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.