No MBean found with name jboss.as:subsystem=messaging,hornetq-server=default in JBoss EAP6

Solution Unverified - Updated -

Issue

  • InstanceNotFoundException is thrown when trying to read the messageCount attribute of a JMS queue via a JMX MBean during the initilization of a singleton EJB with @Startup annotaion.

  • Stack trace provided below:

javax.management.InstanceNotFoundException: JBAS011340: No MBean found with name jboss.as:subsystem=messaging,hornetq-server=default,jms-queue=devQueue
    at org.jboss.as.jmx.model.ModelControllerMBeanHelper.createInstanceNotFoundException(ModelControllerMBeanHelper.java:382)
    at org.jboss.as.jmx.model.ModelControllerMBeanHelper.getAttribute(ModelControllerMBeanHelper.java:179)
    at org.jboss.as.jmx.model.ModelControllerMBeanServerPlugin.getAttribute(ModelControllerMBeanServerPlugin.java:69)
    at org.jboss.as.jmx.PluggableMBeanServerImpl.getAttribute(PluggableMBeanServerImpl.java:154) 

...

Environment

JBoss Enterprise Application Platform (EAP) 6.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