Hi,

In this demonstration we will see ow we can get all the MBeans present inside JBoss AS7 CR1b, because many of the developers want to talk to JBoss using their own mbean based java code. In this example we will see that we need not to add any additional JAVA_OPTS in our JBoss configuration files in order to access these MBeans.

Once you get to know the ObjectName of the MBean present inside JBoss AS7 then it becomes very easy to programatically access it’s various operations and attributes. You can refer to some of the previous demos present in middlewaremagic for further research on this direction. For Example: Getting WebService Statistics using MBean Code

JBoss side Configuration

Step1). Open the “/home/userone/jboss-as-7.1.0.CR1b/standalone/configuration/standalone-full.xml” file and edit the subsystem “urn:jboss:domain:jmx:1.1” as following:

        <subsystem xmlns="urn:jboss:domain:jmx:1.1">
            <show-model value="true"/>
            <jmx-connector registry-binding="jmx-connector-registry" server-binding="jmx-connector-server"/>
        </subsystem>

Step2). Restart your JBoss Profile from “/home/userone/jboss-as-7.1.0.CR1b/bin” directory like following:

[userone@localhost bin]$ ./standalone.sh -c standalone-full.xml

Step3). Now Somewhere in your filesystem (like /home/userone/MBeanDemo directory) write a Java Program “TestMBeanServiceMonitor.java” as following:

import java.util.*;
import java.util.Hashtable;
import java.io.IOException;
import javax.management.MBeanServerConnection;
import javax.management.remote.JMXConnector;
import javax.management.remote.JMXConnectorFactory;
import javax.management.remote.JMXServiceURL;
import java.lang.management.MemoryMXBean;
import java.lang.management.ManagementFactory;
import java.lang.reflect.Method;
import java.lang.reflect.Modifier;
import javax.management.*;
import javax.management.openmbean.CompositeDataSupport;
 
public class TestMBeanServiceMonitor
{
    private static MBeanServerConnection connection;
    private static JMXConnector connector;
    public static void Connection(String hostname, String port) throws IOException
    {
        Integer portInteger = Integer.valueOf(port);
        Hashtable h = new Hashtable();
        JMXServiceURL address = new JMXServiceURL("service:jmx:rmi:///jndi/rmi://"+hostname+":"+port+"/jmxrmi");
        connector = JMXConnectorFactory.connect(address,null);
        connection = connector.getMBeanServerConnection();
        System.out.println("GOT THE MBeanServerConnection---SUCCESSFULLY");
    }
  
    private static void listAllJBossAS7MBeans() throws Exception
    {
        //ObjectName serviceRef=new ObjectName("jboss.as:*");
        ObjectName serviceRef=new ObjectName("*.*:*");
        Set<ObjectName> mbeans = connection.queryNames(serviceRef, null);
        for (ObjectName on : mbeans) {
                  System.out.println("t ObjectName : "+on);
        }
    }

    private static void getThreadDetails() throws Exception
    {
        ObjectName serviceRef=new ObjectName("java.lang:type=Threading");
        Integer daemonThreadCount=(Integer)connection.getAttribute(serviceRef, "DaemonThreadCount");
        System.out.println("t daemonThreadCount : "+daemonThreadCount);
    }

    public static void main(String[] args) throws Exception
    {
        String hostname = args[0];
        String port = args[1];    
        /*
        ***** The port binding should be defined inside your "standalone-full.xml" file.  *****
        *  
        <subsystem xmlns="urn:jboss:domain:jmx:1.1">
            <show-model value="true"/>
            <jmx-connector registry-binding="jmx-connector-registry" server-binding="jmx-connector-server"/>
        </subsystem>
        */

        Connection(hostname, port); 
        System.out.println("nt All JBoss AS7 MBean Listing nn");
        listAllJBossAS7MBeans() ;
    }
}

Step4). Now we will write a simple Ant build script to build and execute the above program. So write an Ant build script “/home/userone/MBeanDemo/build.xml” file in the same directory where the above program is placed.

<project name="JBoss_Monitor" default="run">
<property name="jboss.home" value="/home/userone/jboss-as-7.1.0.CR1b/" />
<property name="jboss.module.dir" value="${jboss.home}/modules" />
<property name="base.dir" value="." />
 
   <path id="jboss.classpath">
     <fileset dir="${jboss.module.dir}">
        <include name="**/*.jar"/>
     </fileset>
   </path>
 
   <target name="run">
       <javac srcdir="${base.dir}" destdir="${base.dir}"  includes="TestMBeanServiceMonitor.java" classpathref="jboss.classpath"/>
       <java classname="TestMBeanServiceMonitor">
           <classpath>
              <pathelement location="${base.dir}"/>
              <path refid="jboss.classpath"/>
           </classpath>
           <arg line="localhost 1090"/>
       </java>
   </target>
</project>

NOTE: The only change in the above file you need to do is to change the “jboss.home” directory path in the second line of the above script is to point to your own JBoss AS7 directory home directory.

NOTE: Also Make sure that you are writing the correct HostName and Port in the above ant script of your JBoss AS7 here arg line=”localhost 1090″

Step5). Now before running your ANT script to build and deploy the above webapplication you should have the ANT as well as JAVA set in the $PATH variable of the Shell / command prompt as following:

For Unix Based OS:
export PATH=/home/userone/jdk1.6.0_21/bin:/home/userone/apache-ant-1.8.2/bin:$PATH

For Windows Based OS:
set PATH=C:/jdk1.6.0_21/bin;C:/apache-ant-1.8.2/bin;%PATH%

Step7). Run the command “ant” or “ant run” which will internally build/compile and run our MBean Code

[userone@localhost Monitoring]$ ant
Buildfile: /home/userone/jboss-as-7.1.0.CR1b/standalone/MBeanDemo/build.xml

run:
    [javac] /home/userone/jboss-as-7.1.0.CR1b/standalone/MBeanDemo/build.xml:13: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
      GOT THE MBeanServerConnection---SUCCESSFULLY
      
      	 All JBoss AS7 MBean Listing 
      
      
      	 ObjectName : jboss.as:core-service=server-environment
      	 ObjectName : jboss.as:extension=org.jboss.as.web
      	 ObjectName : jboss.as:extension=org.jboss.as.remoting
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,remote-destination-outbound-socket-binding=mail-smtp
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=jacorb-ssl
      	 ObjectName : jboss.as:subsystem=ejb3,cache=simple
      	 ObjectName : jboss.as:core-service=management,management-interface=native-interface
      	 ObjectName : jboss.as:deployment=EE6_BeanValidationDemo.war
      	 ObjectName : jboss.as:subsystem=security,security-domain=jboss-web-policy,authorization=classic
      	 ObjectName : jboss.as:extension=org.jboss.as.weld
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.aries.util
      	 ObjectName : jboss.as:subsystem=naming
      	 ObjectName : jboss.as:extension=org.jboss.as.connector
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,security-setting=#,role=guest
      	 ObjectName : jboss.as:subsystem=jca,workmanager=default
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate
      	 ObjectName : jboss.as:subsystem=logging,logger=org.apache.tomcat.util.modeler
      	 ObjectName : java.lang:type=MemoryPool,name=Code Cache
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,connection-factory=RemoteConnectionFactory
      	 ObjectName : jboss.as:deployment=Log4jDemo.war
      	 ObjectName : jboss.as:subsystem=ee
      	 ObjectName : jboss.as:subsystem=ejb3,thread-pool=default
      	 ObjectName : jboss.as:subsystem=webservices,endpoint-config=Standard-Endpoint-Config
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=entity
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=jacorb
      	 ObjectName : jboss.as:subsystem=datasources,data-source=H2DS
      	 ObjectName : jboss.as:subsystem=ejb3,service=async
      	 ObjectName : jboss.as:subsystem=jca,bean-validation=bean-validation
      	 ObjectName : jboss.as:subsystem=security,security-domain=jboss-ejb-policy
      	 ObjectName : jboss.as:extension=org.jboss.as.jpa
      	 ObjectName : java.lang:type=MemoryPool,name=PS Eden Space
      	 ObjectName : java.lang:type=Memory
      	 ObjectName : jboss.as:deployment=MyDemoMDB.jar
      	 ObjectName : jboss.as:subsystem=logging,console-handler=CONSOLE
      	 ObjectName : jboss.as:subsystem=ejb3,cache=passivating
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=jmx-connector-server
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=remoting
      	 ObjectName : jboss.as:extension=org.jboss.as.security
      	 ObjectName : jboss.as:extension=org.jboss.as.ejb3
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.aries.jmx
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.xerces
      	 ObjectName : jboss.as:extension=org.jboss.as.transactions
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-connector=netty-throughput,param=batch-delay
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets
      	 ObjectName : jboss.as:subsystem=deployment-scanner
      	 ObjectName : jboss.as:deployment=MyDemoMDB.jar,subsystem=ejb3,message-driven-bean=MyMDB
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,pooled-connection-factory=hornetq-ra
      	 ObjectName : jboss.as:extension=org.jboss.as.logging
      	 ObjectName : jboss.as:subsystem=jaxrs
      	 ObjectName : jboss.modules:type=ModuleLoader,name=LocalModuleLoader-3
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=management-native
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default
      	 ObjectName : jboss.as:subsystem=jca,archive-validation=archive-validation
      	 ObjectName : jboss.jsr77:j2eeType=JVM,name=default,J2EEServer=default
      	 ObjectName : jboss.as:deployment=TestWebApp.war,subsystem=web,servlet=servlets.TestServlet
      	 ObjectName : jboss.jta:type=ObjectStore
      	 ObjectName : java.lang:type=MemoryPool,name=PS Survivor Space
      	 ObjectName : jboss.as:extension=org.jboss.as.ee
      	 ObjectName : jboss.as:subsystem=logging,periodic-rotating-file-handler=FILE
      	 ObjectName : jboss.modules:type=ModuleLoader,name=ModuleLoaderIntegration-7
      	 ObjectName : jboss.as:subsystem=web,connector=http
      	 ObjectName : java.lang:type=Compilation
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,core-address=jms.topic.testTopic
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.webconsole
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,core-address=jms.queue.testQueue
      	 ObjectName : jboss.as:subsystem=osgi,configuration=org.apache.felix.webconsole.internal.servlet.OsgiManager
      	 ObjectName : jboss.as:subsystem=deployment-scanner,scanner=default
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,jms-queue=testQueue
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.as.osgi.configadmin
      	 ObjectName : jboss.modules:type=ModuleLoader,name=ServiceModuleLoader-5
      	 ObjectName : jboss.as:subsystem=jca,bootstrap-context=default
      	 ObjectName : jboss.as:subsystem=mail
      	 ObjectName : java.lang:type=Runtime
      	 ObjectName : jboss.as:deployment=TestWebApp.war
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.netty
      	 ObjectName : jboss.as:deployment=EE6_BeanValidationDemo.war,subsystem=web,servlet=Faces_Servlet
      	 ObjectName : jboss.as:subsystem=pojo
      	 ObjectName : jboss.as:extension=org.jboss.as.messaging
      	 ObjectName : jboss.ws:service=ServerConfig
      	 ObjectName : jboss.as:management-root=server
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-acceptor=netty-throughput,param=batch-delay
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=timestamps,singleton=eviction
      	 ObjectName : jboss.as:subsystem=jca,workmanager=default,long-running-threads=default-long-running-threads
      	 ObjectName : jboss.as:subsystem=jca,cached-connection-manager=cached-connection-manager
      	 ObjectName : jboss.as:subsystem=ejb3,service=iiop
      	 ObjectName : jboss.as:extension=org.jboss.as.pojo
      	 ObjectName : jboss.as:subsystem=osgi,capability=javax.transaction.api
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.eventadmin
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.osgi.compendium
      	 ObjectName : jboss.jsr77:j2eeType=WebModule,name=TestWebApp.war,J2EEServer=default
      	 ObjectName : jboss.as:subsystem=threads
      	 ObjectName : jboss.jsr77:j2eeType=WebModule,name=Log4jDemo.war,J2EEServer=default
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.configadmin
      	 ObjectName : jboss.as:extension=org.jboss.as.sar
      	 ObjectName : jboss.jsr77:j2eeType=WebModule,name=EE6_BeanValidationDemo.war,J2EEServer=default
      	 ObjectName : java.util.logging:type=Logging
      	 ObjectName : jboss.as:extension=org.jboss.as.mail
      	 ObjectName : jboss.msc:type=container,name=jboss-as
      	 ObjectName : jboss.as:subsystem=infinispan
      	 ObjectName : com.sun.management:type=HotSpotDiagnostic
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-connector=netty-throughput
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=local-query
      	 ObjectName : java.lang:type=GarbageCollector,name=PS Scavenge
      	 ObjectName : jboss.as:subsystem=ejb3,strict-max-bean-instance-pool=mdb-strict-max-pool
      	 ObjectName : jboss.as:extension=org.jboss.as.jsr77
      	 ObjectName : jboss.as:subsystem=transactions
      	 ObjectName : jboss.as:extension=org.jboss.as.jdr
      	 ObjectName : jboss.as:subsystem=security,security-domain=other,authentication=classic
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=messaging
      	 ObjectName : jboss.as:subsystem=security,security-domain=other
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-acceptor=netty-throughput
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.projectodd.stilts
      	 ObjectName : jboss.as:subsystem=ejb3,strict-max-bean-instance-pool=slsb-strict-max-pool
      	 ObjectName : jboss.as:subsystem=webservices,endpoint-config=Recording-Endpoint-Config
      	 ObjectName : jboss.as:core-service=management,security-realm=ManagementRealm,authentication=properties
      	 ObjectName : jboss.as:deployment=BeanValidation_EJB_Demo.ear
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,security-setting=#
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,in-vm-acceptor=in-vm
      	 ObjectName : jboss.as:subsystem=osgi,capability=javax.servlet.api
      	 ObjectName : jboss.as:subsystem=security,security-domain=jboss-ejb-policy,authorization=classic
      	 ObjectName : jboss.as:deployment=BeanValidation_EJB_Demo.ear,subdeployment=localEJB.jar,subsystem=ejb3,stateless-session-bean=CallerName
      	 ObjectName : jboss.as:subsystem=cmp
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=entity,singleton=eviction
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=txn-recovery-environment
      	 ObjectName : jboss.as:extension=org.jboss.as.jaxrs
      	 ObjectName : jboss.as:subsystem=ejb3,service=timer-service
      	 ObjectName : jboss.as:extension=org.jboss.as.webservices
      	 ObjectName : java.lang:type=MemoryPool,name=PS Perm Gen
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=local-query,singleton=expiration
      	 ObjectName : jboss.as:subsystem=webservices
      	 ObjectName : jboss.as:subsystem=jpa
      	 ObjectName : jboss.as:core-service=management
      	 ObjectName : jboss.as:subsystem=logging,logger=jacorb
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.http
      	 ObjectName : java.lang:type=MemoryPool,name=PS Old Gen
      	 ObjectName : jboss.as:subsystem=web,configuration=jsp-configuration
      	 ObjectName : jboss.as:subsystem=web,configuration=static-resources
      	 ObjectName : jboss.as:subsystem=sar
      	 ObjectName : jboss.as:core-service=management,security-realm=ManagementRealm
      	 ObjectName : java.lang:type=GarbageCollector,name=PS MarkSweep
      	 ObjectName : jboss.as:subsystem=jca,workmanager=default,short-running-threads=default-short-running-threads
      	 ObjectName : jboss.as:deployment=BeanValidation_EJB_Demo.ear,subdeployment=localEJB.jar
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=txn-status-manager
      	 ObjectName : jboss.as:deployment=EE6_BeanValidationDemo.war,subsystem=web
      	 ObjectName : jboss.as:subsystem=osgi,property=org.osgi.framework.startlevel.beginning
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,in-vm-connector=in-vm
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,address-setting=#
      	 ObjectName : jboss.as:subsystem=ejb3
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.metatype
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.scr
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.log
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.blueprint
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-acceptor=netty
      	 ObjectName : jboss.as:subsystem=logging
      	 ObjectName : jboss.as:subsystem=jca
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=osgi-http
      	 ObjectName : jboss.as:subsystem=datasources
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.webapp
      	 ObjectName : jboss.jsr77:j2eeType=J2EEDomain,name=jboss.jsr77
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=jmx-connector-registry
      	 ObjectName : jboss.as:subsystem=security
      	 ObjectName : jboss.as:subsystem=jdr
      	 ObjectName : java.lang:type=ClassLoading
      	 ObjectName : jboss.as:subsystem=datasources,jdbc-driver=h2
      	 ObjectName : java.lang:type=Threading
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.logging
      	 ObjectName : jboss.as:subsystem=security,security-domain=jboss-web-policy
      	 ObjectName : jboss.as:subsystem=jmx
      	 ObjectName : jboss.as:subsystem=logging,logger=sun.rmi
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,jms-topic=testTopic
      	 ObjectName : jboss.as:subsystem=ejb3,file-passivation-store=file
      	 ObjectName : jboss.as:deployment=Log4jDemo.war,subsystem=web,servlet=servlets.TestServlet
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=messaging-throughput
      	 ObjectName : jboss.as:subsystem=resource-adapters
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=management-http
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=https
      	 ObjectName : jboss.as:subsystem=jacorb
      	 ObjectName : jboss.as:core-service=service-container
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-acceptor=netty-throughput,param=direct-deliver
      	 ObjectName : jboss.as:extension=org.jboss.as.osgi
      	 ObjectName : jboss.jsr77:j2eeType=J2EEApplication,name=BeanValidation_EJB_Demo.ear,J2EEServer=default
      	 ObjectName : jboss.as:subsystem=remoting,connector=remoting-connector
      	 ObjectName : jboss.as:interface=public
      	 ObjectName : jboss.as:interface=management
      	 ObjectName : jboss.as:extension=org.jboss.as.jacorb
      	 ObjectName : java.lang:type=MemoryManager,name=CodeCacheManager
      	 ObjectName : jboss.as:extension=org.jboss.as.clustering.infinispan
      	 ObjectName : jboss.as:subsystem=ejb3,service=remote
      	 ObjectName : jboss.as:subsystem=weld
      	 ObjectName : jboss.as:deployment=Log4jDemo.war,subsystem=web
      	 ObjectName : jboss.jsr77:j2eeType=J2EEServer,name=default
      	 ObjectName : jboss.as:subsystem=logging,logger=com.arjuna
      	 ObjectName : jboss.as:subsystem=logging,root-logger=ROOT
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.apache.felix.webconsole
      	 ObjectName : jboss.as:deployment=MyDemoMDB.jar,subsystem=ejb3
      	 ObjectName : jboss.as:extension=org.jboss.as.cmp
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=local-query,singleton=eviction
      	 ObjectName : jboss.as:subsystem=remoting
      	 ObjectName : jboss.as:subsystem=logging,logger=jacorb.config
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=entity,singleton=expiration
      	 ObjectName : jboss.as:subsystem=web,virtual-server=default-host
      	 ObjectName : jboss.as:extension=org.jboss.as.deployment-scanner
      	 ObjectName : jboss.as:deployment=BeanValidation_EJB_Demo.ear,subdeployment=localEJB.jar,subsystem=ejb3
      	 ObjectName : jboss.as:extension=org.jboss.as.threads
      	 ObjectName : jboss.as:core-service=management,management-interface=http-interface
      	 ObjectName : jboss.as:extension=org.jboss.as.naming
      	 ObjectName : java.lang:type=OperatingSystem
      	 ObjectName : jboss.as:subsystem=osgi
      	 ObjectName : jboss.as:extension=org.jboss.as.jmx
      	 ObjectName : jboss.as:subsystem=messaging
      	 ObjectName : jboss.as:subsystem=osgi,capability=org.jboss.osgi.jmx
      	 ObjectName : jboss.as:subsystem=infinispan,cache-container=hibernate,local-cache=timestamps
      	 ObjectName : jboss.as:deployment=TestWebApp.war,subsystem=web
      	 ObjectName : jboss.as:subsystem=osgi,capability=javax.api
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,connection-factory=InVmConnectionFactory
      	 ObjectName : jboss.as:socket-binding-group=standard-sockets,socket-binding=http
      	 ObjectName : jboss.as:subsystem=messaging,hornetq-server=default,remote-connector=netty
      	 ObjectName : jboss.as:subsystem=web
      	 ObjectName : jboss.as:subsystem=mail,mail-session=java%x3ajboss/mail/Default
      	 ObjectName : jboss.as:subsystem=jsr77
      	 ObjectName : jboss.as:subsystem=jmx,connector=jmx
      	 ObjectName : jboss.as:subsystem=web,configuration=container

BUILD SUCCESSFUL
Total time: 0 seconds

So like this we got all the list of MBean ObjectName present inside JBoss AS7.
.
.
Thanks 🙂
MiddlewareMagic Team

If you enjoyed this post, please consider leaving a comment or subscribing to the RSS feed to have future articles delivered to your feed reader.