A Primary Difference between RMI and Mbeans is that all invocations for MBeans go through an agent., So the client and the final MBean have no interaction. You can change either ends(Client and the MBean at will). RMI is strictly bound by a contract . Also you have the overhead of creating ur stubs and skeletons and passing them over to the client. Not sure if DII can be used here, been a long time since i used RMI
As for Question 2, yes you can have any client access the MBeans deployed on JBoss. The adaptors are used primarily for this purpose. JBoss provides HTTP and RMI and SNMP adaptors for this purpose. All you need to do is get the adaptor for ur environment, get the MBeanServer Implementation and call whatever method on whatever object
Thank you very much Raja for your reply. One more question, what version of JBoss did those adaptors come with? Currently we are using JBoss2.4.8, does JBoss2.4.8 have those adaptors? if not what's the replacements?
Thanks a lot
I havent used JBoss pre 3.x but if JMX was in 2.4.x then im sure there must be atleast one type of adaptor thats mandated by the spec. Check out the jmx-console to find out if there are any adaptors registerd