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