you are getting th error because jConsole doesn't have access to the JBoss Messaging classes. add the jars if you want to do this.
alternatively use the JMX or Admin console
However, the user shouldn't have to put the JBM jars on the jconsole classpath, we should only be passing back standard types not SimpleString.
We should look into this.
How do I look up queues in JBoss JMX console? I click jboss.messaging then name=JMSProvider,service=JMSProviderLoader, but I don't see any queues under there. At least with jconsole I was able to get to the queues quite easily.
err... sorry, I confused JON and AS 5 JMX console.
there is an issue in the current configuration of JBoss Messaging which prevents to manage it directly in AS 5 console.
To fix it:
1/ change the MBeanServer code in deploy/messaging.sar/jbm-jboss-beans.xml to:
<bean name="MBeanServer" class="javax.management.MBeanServer"> <constructor factoryClass="org.jboss.mx.util.MBeanServerLocator" factoryMethod="locateJBoss"/> </bean>
2/ edit conf/props/messaging-users.properties and add the line:
3/ that's it, JBoss Messaging is manageable using the JMX console: http://localhost:8080/jmx-console/
in the domain tab using "org.jboss.messaging"
We'll fix this configuration issue in our next release.
Sorry for the inconvenience
Jeff, please add a JIRA for this too.
Thanks Jeff. That worked for me.