Hide Forgot
Description of problem: At my current client, they have a need to access mbean information from their deployed application from the JBoss CLI, as they wish to use the CLI for scripting. JMX tools, like VisualVM, show this information, but the JBoss CLI does not. It shows the deployed application, but no other information about the mbeans is exposed. How reproducible: Expose an mbean in an application and deploy it. JMX connection via VisualVM will show the mbean, the JBoss CLI will not. Steps to Reproduce: 1. Expose mbean and deploy application 2. ./$JBOSS_HOME/bin/jboss_cli.sh 3. Connect to the JBoss server with deployed application 4. cd deployment= 5. No attributes related to mbeans appear Actual results: Shows the deployed application and some basic stats Expected results: To see mbeans and their attributes exposed, in a fashion similar to VisualVM or JMX tools
This feature would also be very useful in domain mode, as you could issue commands in the CLI of the Domain Controller targeting MBeans residing in remote hosts. Suppose there is one management domain with two hosts, each one having one server. There is also an MBean deployed in each server. Now, from the CLI of the domain controller the following two commands could be issued to read an attribute of the MBean: /host=host1/server=server-one/mbean=org.myorg/type=MBeanX/name=mbeanx1:read-attribute(name=attribute1) /host=host2/server=server-one/mbean=org.myorg/type=MBeanX/name=mbeanx1:read-attribute(name=attribute1) Note that the path expression in the command, /mbean=org.myorg/type=MBeanX/name=mbeanx1, represents the JMX MBean Object name org.myorg:type=MBeanX,name=mbeanx1 Hope I've made my self clear.
Associated RFE got rejected.