Bug 1017455

Summary: cannot get user-exposed mbean data from the CLI
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: jprokay <jprokay>
Component: CLIAssignee: Alexey Loubyansky <olubyans>
Status: CLOSED NOTABUG QA Contact: Petr Kremensky <pkremens>
Severity: medium Docs Contact: Russell Dickenson <rdickens>
Priority: unspecified    
Version: 6.2.0CC: bmaxwell, brian.stansberry, dereed, diego.del.rio, ewertz, mwalker
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-07-30 09:59:20 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description jprokay@redhat.com 2013-10-09 23:05:06 UTC
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

Comment 2 Diego del Río 2013-12-06 18:19:49 UTC
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.

Comment 4 Joe Wertz 2014-07-30 09:59:20 UTC
Associated RFE got rejected.