3 Replies Latest reply on Jun 15, 2004 2:10 PM by Raja

    What's the difference between MBean and RMI service?

    davidchen Newbie

      Hi, there:

      I'm new guy to MBean stuff in JBoss, just basic questions:

      1. Since we can use MBean to provide customer service, so, what's the difference between MBean and RMI service?
      2. Is MBean in jboss accessed by components deployed on jboss ONLY? or MBeans can be accessed by outside jboss clients (standalone java application, jsp/servlets, applets, etc.)?

      Thanks a lot in advance.

      David

        • 1. Re: What's the difference between MBean and RMI service?
          Raja Master

          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

          • 2. Re: What's the difference between MBean and RMI service?
            davidchen Newbie

            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

            David

            • 3. Re: What's the difference between MBean and RMI service?
              Raja Master

              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