7 Replies Latest reply on Jun 25, 2012 3:36 PM by Tomaz Cerar

    JBoss AS 7.1 - Trying to capture JBoss deployment events

    allan gochee Newbie

      In JBoss 5, the main deployer existed where you could setup to capture deployment events:

      jboss.system:service=MainDeployer JMX MBean


      I'm trying to find the equivalent with AS 7.*


      The documentation for this new AS has been limited.


      I understnad this much:


        String host = "localhost";  // Your JBoss Bind Address default is localhost

              int port = 9999;  // management-native port


              String urlString ="service:jmx:remoting-jmx://" + host + ":" + port;

              System.out.println("          \n\n\t****  urlString: "+urlString);


              JMXServiceURL serviceURL;

                          try {

                                    serviceURL = new JMXServiceURL(urlString);


              JMXConnector jmxConnector = JMXConnectorFactory.connect(serviceURL, null);

              MBeanServerConnection connection = jmxConnector.getMBeanServerConnection();

             connection.addNotificationListener(name, this, filter, handback);


      As for name(mbean deployer) and filter I need details/URLs on how to setup for this to work in this AS.  Thanks.