[jboss-user] [JBoss Microcontainer] - JBoss AS 7.1 - Trying to capture JBoss deployment events

allan gochee do-not-reply at jboss.com
Mon Jun 25 10:49:34 EDT 2012


allan gochee [https://community.jboss.org/people/allan307am] created the discussion

"JBoss AS 7.1 - Trying to capture JBoss deployment events"

To view the discussion, visit: https://community.jboss.org/message/743999#743999

--------------------------------------------------------------
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.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/743999#743999]

Start a new discussion in JBoss Microcontainer at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2114]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120625/85c36b05/attachment-0001.html 


More information about the jboss-user mailing list