1 Reply Latest reply on Jan 30, 2002 5:09 AM by sjus00

    RMI Connector in 3.0.0

    mjamison

      I'm trying to establish an rmi connection between my mbean (running in my MBeanServer) and JBoss. There is documentation on how to do this in 2.4.4 but nothing for 3.0.

      Does anyone have sample code to do this.


      Mike

        • 1. Re: RMI Connector in 3.0.0
          sjus00

          Hi!
          I did an RMI-Connection with 2.4.3 with the following code:

          System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
          System.setProperty("java.naming.provider.url", "yourComputer:1098");
          System.setProperty("java.naming.factory.url.pkgs", "org.jboss.naming:org.jnp.interfaces");

          RMIClientConnectorImpl myConnector = new RMIClientConnectorImpl ("yourComputer");

          myConnector.createMBean( ... );
          myConnector.addNotificationListener( ... );
          myConnector.invoke( ... );


          In Jboss 3.0 there is also an RMI Connector started (in default-configuration), you can see this on:
          http://localhost:8082 there is the MBean:
          name=Connector,type=RMI in the domain JMX.

          Hope it helps sometimes..
          Sjus