1 Reply Latest reply on Dec 5, 2005 1:43 PM by starksm64

    RMIAdaptorService replacement

    mirceat

      Hi:

      I'm new to JBoss and I have to port an application from JBoss 3.2.7 to 4.0.2.

      I noticed that the application name space is different in the two versions. In 3.2.7 there are two extra nodes bound to RMIAdaptorImpl and the deployment descriptor for 3.2.7 includes RMIAdaptorService:

      <?xml version="1.0" encoding="UTF-8"?>
      
      <server>
      
       <mbean code="org.jboss.jmx.adaptor.rmi.RMIAdaptorService"
       name="jboss.jmx:type=Connector,name=RMI">
       <constructor>
       <arg type = "java.lang.String" value = "controler" />
       </constructor>
      
       <attribute name="JndiName">controler</attribute>
       <!-- Use an anonymous listening port -->
       <attribute name="RMIObjectPort">0</attribute>
       <!-- Bind on every available interface -->
       <attribute name="ServerAddress"></attribute>
       </mbean>
      
      </server>


      In note: http://wiki.jboss.org/wiki/Wiki.jsp?page=HowDoIGetRemoteAccessToMyMBean
      I noticed the recommendation to use the interface MBeanServerConnection instead of RMIAdaptor. What implementation of this interface should I use? Am I on the right track?

      Thanks+regards,
      Mircea