| MBeanServer server = MBeanServerLocator.locateJBoss();
| ClusterPartitionMBean cluster = (ClusterPartitionMBean)
MBeanProxyExt.create(ClusterPartitionMBean.class,
"jboss:service=default_partition", server);
| Vector<String> nodes = cluster.getCurrentView();
| String jnpNodes = new String("");
| for (String node : nodes) {
| jnpNodes+="jnp://"+node+",";
| }
|
| InitialContext ctx = new InitialContext();
| ctx.addToEnvironment(ctx.PROVIDER_URL, jnpNodes);
| MBeanServerConnection conn = (MBeanServerConnection)
ctx.lookup("jmx/invoker/RMIAdaptor");
| conn.invoke(.....)
Is it good ??
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4158988#4158988
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4158988
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user