I don't see a problem with this.
I think the only real dependency is the NamingService.
Since you are inside the same VM, why aren't you using
the MBeanServer directly?
The only reason is because in our application, JBoss could potentially be running on a different machine than the servlets. If using the RMIClientConnector because problematic than we will force the users to have their servlets hosted on the same machine as JBoss but we don't want to force that if we don't have to. Please let me know if you have any opinions on this strategy.
The RMI connector is better if you aren't sure where
the servlet will run.