Package mx4j.adaptor.rmi.jrmp

Examples of mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean


        // Create the JRMP adaptor
        final ObjectName adaptor = new ObjectName( "Adaptor:protocol=JRMP" );
        server.createMBean( "mx4j.adaptor.rmi.jrmp.JRMPAdaptor",
                            adaptor,
                            null );
        final JRMPAdaptorMBean mbean =
            (JRMPAdaptorMBean)StandardMBeanProxy.create(
                JRMPAdaptorMBean.class,
                server,
                adaptor );
        // Set the JNDI name with which will be registered
        mbean.setJNDIName( "jrmp" );

        mbean.putNamingProperty( javax.naming.Context.INITIAL_CONTEXT_FACTORY,
                                 m_namingFactory );
        mbean.putNamingProperty( javax.naming.Context.PROVIDER_URL,
                                 "rmi://localhost:" + m_rmi_registry_port );

        // Register the JRMP adaptor in JNDI and start it
        mbean.start();
    }
View Full Code Here


        server.invoke( naming, "start", null, null );

        // Create the JRMP adaptor
        ObjectName adaptor = new ObjectName( "Adaptor:protocol=JRMP" );
        server.createMBean( "mx4j.adaptor.rmi.jrmp.JRMPAdaptor", adaptor, null );
        JRMPAdaptorMBean mbean =
            (JRMPAdaptorMBean)StandardMBeanProxy.create( JRMPAdaptorMBean.class,
                                                         server,
                                                         adaptor );
        // Set the JNDI name with which will be registered
        String jndiName = "jrmp";
        mbean.setJNDIName( jndiName );
        // Register the JRMP adaptor in JNDI and start it
        mbean.start();
    }
View Full Code Here

      nsmbean.start();

      // Create the JRMP adaptor
      ObjectName adaptor = new ObjectName("Adaptor:protocol=JRMP");
      mserver.createMBean("mx4j.adaptor.rmi.jrmp.JRMPAdaptor", adaptor, null);
      JRMPAdaptorMBean jrmpmbean = (JRMPAdaptorMBean)StandardMBeanProxy.create(JRMPAdaptorMBean.class, mserver, adaptor);
 
      // Set the JNDI name with which will be registered
      String jndiName = "jrmp";
      jrmpmbean.setJNDIName(jndiName);

      String lHost = host;

      if (lHost == null)
        lHost = "localhost";
      else if (lHost.length() == 0)
          lHost = InetAddress.getLocalHost().getHostName();

      log( "Started mx4j jrmp adaptor" + ((host != null) ? " for host " + host : "") + " at port " + port);

      jrmpmbean.putJNDIProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.rmi.registry.RegistryContextFactory");
      jrmpmbean.putJNDIProperty(javax.naming.Context.PROVIDER_URL, "rmi://" + lHost + ":" + port);

      jrmpmbean.start();
     
    }
    catch( Throwable t )
    {
      log("Can't load MX4J JRMP adaptor" + t.toString() );
View Full Code Here

        server.invoke( naming, "start", null, null );

        // Create the JRMP adaptor
        final ObjectName adaptor = new ObjectName( "Adaptor:protocol=JRMP" );
        server.createMBean( "mx4j.adaptor.rmi.jrmp.JRMPAdaptor", adaptor, null );
        JRMPAdaptorMBean mbean =
            (JRMPAdaptorMBean)StandardMBeanProxy.create( JRMPAdaptorMBean.class,
                                                         server,
                                                         adaptor );
        // Set the JNDI name with which will be registered
        mbean.setJNDIName( "jrmp" );
        // Register the JRMP adaptor in JNDI and start it
        mbean.start();
    }
View Full Code Here

        server.invoke( naming, "start", null, null );

        // Create the JRMP adaptor
        ObjectName adaptor = new ObjectName( "Adaptor:protocol=JRMP" );
        server.createMBean( "mx4j.adaptor.rmi.jrmp.JRMPAdaptor", adaptor, null );
        JRMPAdaptorMBean mbean =
            (JRMPAdaptorMBean)StandardMBeanProxy.create( JRMPAdaptorMBean.class,
                                                         server,
                                                         adaptor );
        // Set the JNDI name with which will be registered
        String jndiName = "jrmp";
        mbean.setJNDIName( jndiName );
        // Register the JRMP adaptor in JNDI and start it
        mbean.start();
    }
View Full Code Here

        server.invoke( naming, "start", null, null );

        // Create the JRMP adaptor
        final ObjectName adaptor = new ObjectName( "Adaptor:protocol=JRMP" );
        server.createMBean( "mx4j.adaptor.rmi.jrmp.JRMPAdaptor", adaptor, null );
        JRMPAdaptorMBean mbean =
            (JRMPAdaptorMBean)StandardMBeanProxy.create( JRMPAdaptorMBean.class,
                                                         server,
                                                         adaptor );
        // Set the JNDI name with which will be registered
        mbean.setJNDIName( "jrmp" );
        // Register the JRMP adaptor in JNDI and start it
        mbean.start();
    }
View Full Code Here

TOP

Related Classes of mx4j.adaptor.rmi.jrmp.JRMPAdaptorMBean

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.