Package net.jini.jeri

Examples of net.jini.jeri.BasicILFactory


            ldm = new LookupDiscoveryManager(groupsToJoin, locatorsToJoin,
                                             null, config);

            ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
            InvocationLayerFactory ilFactory = new BasicILFactory();
            Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                             ilFactory,
                                                             false,
                                                             true);
            if(activationID != null) {
View Full Code Here


                                            new LookupLocator[0], null,config);
        }

        /* Handle items and duties related to exporting this service. */
        ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
        InvocationLayerFactory ilFactory = new BasicILFactory();
        Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                         ilFactory,
                                                         false,
                                                         true);
        /* For the activatable server */
 
View Full Code Here

  logger.log(Level.INFO, "Starting VMKiller service");
  exporter =
      new ActivationExporter(
       activationID,
       new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
           new BasicILFactory()));
  ourStub = exporter.export(this);
    }
View Full Code Here

      Callback cb = (Callback) mobj.get();
      cb.activated();
  }
  Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  exporter = new ActivationExporter(id, basicExporter);
  stub = exporter.export(this);
    }
View Full Code Here

  try {
      ActivationSystem sys = ActivationGroup.getSystem();
      CallbackImpl cb = new CallbackImpl();
      BasicJeriExporter basicExporter =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), true, true);
      MarshalledObject mo =
    new MarshalledObject(basicExporter.export(cb));
      Properties props = new Properties();
      props.put("java.security.policy",
          TestParams.testSrc + File.separator +
View Full Code Here

          MERCURY, "serverExporter", Exporter.class,
    new ActivationExporter(
        activationID,
        new BasicJeriExporter(
            TcpServerEndpoint.getInstance(0),
      new BasicILFactory(), false, true)),
    activationID);
            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG, "Activatable service exporter is: {0}",
          exporter);
      }   
  } else { //Get non-activatable configuration items
            exporter = (Exporter) Config.getNonNullEntry(config,
                MERCURY, "serverExporter", Exporter.class,
    new BasicJeriExporter(
        TcpServerEndpoint.getInstance(0),
        new BasicILFactory(), false, true));
            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG,
    "Non-activatable service exporter is: {0}", exporter);   
      }
  }
View Full Code Here

      exporter = (Exporter)
    Config.getNonNullEntry(browser.config, Browser.BROWSER,
         "listenerExporter", Exporter.class,
         new BasicJeriExporter(
               TcpServerEndpoint.getInstance(0),
               new BasicILFactory(),
               false, false));
      proxy = (RemoteEventListener) exporter.export(this);
    }
View Full Code Here

      Reference loaderRef = new WeakReference(loader, refQueue);
      System.err.println("created loader: " + loader);

      Thread.currentThread().setContextClassLoader(loader);
      exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
               new BasicILFactory(), true, true);
      exporter.export(obj);
      Thread.currentThread().setContextClassLoader(
    ClassLoader.getSystemClassLoader());
      System.err.println(
    "exported remote object with loader as context class loader");
View Full Code Here

    private static Ping export(String host, int port, Ping impl)
  throws ExportException, UnsupportedConstraintException
    {
  ServerEndpoint se = getServerEndpoint(host, port, new SF(), null);
  InvocationLayerFactory ilf =
      new BasicILFactory(null, null, PingImpl.class.getClassLoader());
  Exporter exporter = new BasicJeriExporter(se, ilf, false, false);
  return (Ping) exporter.export(impl);
    }
View Full Code Here

  System.setProperty(
      "com.sun.jini.jeri.server.suppressStackTraces", "true");

  Exporter exporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0), new
          BasicILFactory(), true, true);

  try {
      verifySuppression((Pong) exporter.export(new Impl()));
View Full Code Here

TOP

Related Classes of net.jini.jeri.BasicILFactory

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.