Hi,
I wonder if it's possible to invoke a method on all instances of a MBean (here it's a MDB) of a cluster.
Indeed I have a singleton on my cluster of server which should handle the work of all my MDB on my cluster of server.
But if I call the method below on my singleton, I only stop MDBs located on the singleton node and not the other deployed on other nodes
MBeanServer server = org.jboss.mx.util.MBeanServerLocator.locateJBoss(); Hashtable<String, String> props2 = new Hashtable<String, String>(); props2.put("service", "EJB3"); props2.put("name", "myName"); props2.put("ear", "myEar"); props2.put("jar", "myJar"); ObjectName name2 = new ObjectName("jboss.j2ee", props2); server.invoke(name2, "stopDelivery", null, null);
any idea?