So we only can access the remote mbean by the MBeanconnection, if so, that's really bad. Because in JBoss5, I can get a remote mbean by JNDI lookup, then I can invoke the remote mbean's method like what happens in local JVM. I can't believe JBoss7 removed this feature.
JNDI code(vey simple)
// define remote ip, port and authtication parameters in this hashtable.
Hashtable hashtable;
InitialContext ctx = new InitialContext(hashtable);
User user = (User) ctx.lookup("java:/user");
System.out.println(user.getName());