Package net.jini.jeri

Examples of net.jini.jeri.BasicILFactory


  System.err.println("\nRegression test for RFE 4010355\n");

  Exporter exporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), true, true);
 
  try {
      Ping stub = (Ping) exporter.export(new ServerStackTrace());

      StackTraceElement[] remoteTrace;
View Full Code Here


 
  try {
      System.err.println("Regression test for 5024489\n");

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

      Remote impl = new Impl();
      Remote proxy = exporter.export(impl);

      TrustVerifier.Context ctx = new TestContext();
View Full Code Here

    public static void main(String[] args) throws Exception {
  Impl impl = new Impl();
  Exporter exporter = new BasicJeriExporter(
      TcpServerEndpoint.getInstance(null, 0, null,
            new DelayingServerSocketFactory()),
      new BasicILFactory());
  Ping stub = (Ping) exporter.export(impl);

  new Thread(new Unexporter(exporter)).start();

  try {
View Full Code Here

            new ActivationGroupID[groupTable.size()]);
  activator = new ActivatorImpl();
  ServerEndpoint se = TcpServerEndpoint.getInstance(PHOENIX_PORT);
  activatorExporter =
      getExporter(config, "activatorExporter",
      new BasicJeriExporter(se, new BasicILFactory(),
                false, true,
               PhoenixConstants.ACTIVATOR_UUID));
  system = new SystemImpl();
  systemExporter =
      getExporter(config, "systemExporter",
View Full Code Here

      }
  };
  ServerEndpoint se =
      TcpServerEndpoint.getInstance(null, 0, sf, ssf);
  InvocationLayerFactory ilf =
      new BasicILFactory(null, null, PingImpl.class.getClassLoader());
  Exporter exporter = new BasicJeriExporter(se, ilf, false, false);
  Ping proxy = (Ping) exporter.export(impl);
  /*
   * Create this object early to avoid possible FuturePing
   * verification failure when new threads cannot be created.
View Full Code Here

      }
  };
  ServerEndpoint se =
      TcpServerEndpoint.getInstance("localhost", 0, sf, ssf);
  InvocationLayerFactory ilf =
      new BasicILFactory(null, null, PingImpl.class.getClassLoader());
  Exporter exporter = new BasicJeriExporter(se, ilf, false, false);
  Ping proxy = (Ping) exporter.export(impl);
  /*
   * Create another proxy that will use a different connection
   * than the first (SocketFactory does not override equals).
View Full Code Here

      throws Exception
  {
      myAid = aid;
      Exporter basicExporter =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), false, true);
      exp = new ActivationExporter(aid, basicExporter);
      proxy = exp.export(this);
  }
View Full Code Here

  throws ConfigurationException, RemoteException
    {
  return (Exporter) config.getEntry(
      "com.sun.jini.example.hello.Server", "exporter", Exporter.class,
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory()));
    }
View Full Code Here

      } else {
    Exporter uexporter;
    if (exportType.equals("basic")) {
        uexporter = new
      BasicJeriExporter(TcpServerEndpoint.getInstance(0),
            new BasicILFactory(),
            true, true);
    } else if (exportType.equals("jrmp")) {
        uexporter = new JrmpExporter();
    } else {
        throw new ExportException("unknown exportType");
View Full Code Here

  MarshalledObjectGet obj = new MarshalledObjectGet();
  Exporter exporter = null;

  try {
      exporter = new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
               new BasicILFactory(), true, true);
      Remote stub = exporter.export(obj);
      System.err.println("exported remote object");

      MarshalledObject mobj = new MarshalledObject(stub);
      Remote unmarshalledStub = (Remote) mobj.get();
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.