Bug 1017455 - cannot get user-exposed mbean data from the CLI
Summary: cannot get user-exposed mbean data from the CLI
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: CLI
Version: 6.2.0
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
: ---
Assignee: Alexey Loubyansky
QA Contact: Petr Kremensky
Russell Dickenson
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-10-09 23:05 UTC by jprokay@redhat.com
Modified: 2018-12-03 20:13 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-07-30 09:59:20 UTC
Type: Enhancement


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker PRODMGT-425 0 Major Resolved Way to access JBoss MBeans in EAP 6 through Command Line like twiddle 2017-09-11 08:08:07 UTC

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.


Note You need to log in before you can comment on or make changes to this bug.