Package net.jini.jeri

Examples of net.jini.jeri.BasicILFactory


          TxnManager.MAHALO, "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 {
            exporter = (Exporter) Config.getNonNullEntry(config,
                TxnManager.MAHALO, "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


    }

    public Object run() throws Exception {
  ServerEndpoint se1 = SslServerEndpoint.getInstance(PORT);
  ServerEndpoint se2 = SslServerEndpoint.getInstance(HOST, PORT);
  InvocationLayerFactory ilf = new BasicILFactory();
  Exporter e1 = new BasicJeriExporter(se1, ilf);
  Exporter e2 = new BasicJeriExporter(se2, ilf);
  e1.export(new Remote() { });
  e2.export(new Remote() { });
View Full Code Here

  /* What we use for the default (or in the default activatable case
   * what we make the underlying exporter).
   */
  final Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  if (activationID == null) {
      exporter = (Exporter)Config.getNonNullEntry(config,
    COMPONENT_NAME,  "serverExporter", Exporter.class,
    basicExporter);
  } else {
View Full Code Here

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

       DEFAULT_IDLE_CONNECTION_TIMEOUT).longValue();

  CountedSocketFactory csf = new CountedSocketFactory();
  Exporter exporter = new BasicJeriExporter(
      HttpServerEndpoint.getInstance(null, 0, csf, null),
      new BasicILFactory());
  EchoImpl impl = new EchoImpl();
  Echo stub = (Echo) exporter.export(impl);

  try {
      final int REPS = 3;
View Full Code Here

  throws ConfigurationException
    {
  return (Exporter) Config.getNonNullEntry(
      config, NORM, "serverExporter", Exporter.class,
      new BasicJeriExporter(
    TcpServerEndpoint.getInstance(0), new BasicILFactory()));
    }
View Full Code Here

  Subject s = loginContext.getSubject();
  ServerEndpoint se1 = KerberosServerEndpoint.getInstance(s, null, null,
                PORT);
  ServerEndpoint se2 = KerberosServerEndpoint.getInstance(s, null, HOST,
                PORT);
  InvocationLayerFactory ilf = new BasicILFactory();
  Exporter e1 = new BasicJeriExporter(se1, ilf, false, false);
  Exporter e2 = new BasicJeriExporter(se2, ilf, false, false);
  e1.export(new Remote() { });
  e2.export(new Remote() { });
    }
View Full Code Here

      LocateRegistry.createRegistry(TestLibrary.REGISTRY_PORT);
      System.err.println("created registry");

      Exporter exporterA =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), true, false);
      Remote stubA = exporterA.export(obj);
      System.err.println("exported remote object once");

      Exporter exporterB =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), true, false);
      Remote stubB = exporterB.export(obj);
      System.err.println("exported remote object twice");

      Exporter exporterC =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), false, false);
      Remote stubC = exporterC.export(obj);
      System.err.println("exported remote object thrice");

      Registry registry = LocateRegistry.getRegistry(
    "", TestLibrary.REGISTRY_PORT);
View Full Code Here

    KerberosServerEndpoint.getInstance(
    serverSubject, null, null, 0, null, null);
     
      serverExporter = new BasicJeriExporter(
    serverEndpoint,
    new BasicILFactory(
        new BasicMethodConstraints(serverConstraints),
        ServerPermission.class));
      server = new Server();
      Hello serverProxy = (Hello) serverExporter.export(server);
View Full Code Here

  Exporter result = (Exporter) Config.getNonNullEntry(
      config, NORM, "serverExporter", Exporter.class,
      new ActivationExporter(
    activationID,
    new BasicJeriExporter(
        TcpServerEndpoint.getInstance(0), new BasicILFactory())),
      activationID);
  return result;
    }
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.