Package net.jini.export

Examples of net.jini.export.Exporter.export()


  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;
      for (int i = 0; i < REPS; i++) {
    if (stub.echo(i) != i) {
View Full Code Here


                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

      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);
View Full Code Here

      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);
View Full Code Here

      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

                Exporter.class,
                null);
    if (exporter == null) {
        return; // configuration isn't secure
    }
    proxy = (ProxyTrust) exporter.export(this);
      } catch (Exception e) {
    throw new RuntimeException("Problem creating verifier", e);
      }
  }
View Full Code Here

                   Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Bad configuration", e);
      }
  }
  proxy = exporter.export(this);
        rtn = s;
    }

    public Object writeReplace() throws ObjectStreamException {
        return proxy;
View Full Code Here

                 Exporter.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Could not find listener exporter", e);
    }
      }
            proxy = exporter.export(this);
        }

  public Object writeReplace() throws ObjectStreamException {
      return proxy;
  }
View Full Code Here

      Exporter exporter = QAConfig.getDefaultExporter();
      if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
    exporter =
    (Exporter) c.getEntry("test", "outriggerListenerExporter", Exporter.class);
      }
      proxy = exporter.export(this);
  } catch (ConfigurationException e) {
      throw new IllegalArgumentException("Bad configuration" + e);
  }
        this.tmpl = tmpl;
    }
View Full Code Here

    Exporter exporter = QAConfig.getDefaultExporter();
    if (c instanceof com.sun.jini.qa.harness.QAConfiguration) {
        exporter =
        (Exporter) c.getEntry("test", "outriggerListenerExporter", Exporter.class);
    }
    proxy = exporter.export(this);
      } catch (ConfigurationException e) {
    throw new RemoteException("Bad configuration", e);
      }
            this.throwRuntime = throwRuntime;
        }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.