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.