Package net.jini.export

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


             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
  }
  stub = (LeaseBackEnd)exporter.export(this);
    }

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


             Exporter.class);
      }
  } catch (ConfigurationException e) {
      throw new RemoteException("Configuration problem", e);
  }
  stub = (LeaseBackEnd)exporter.export(this);
    }

    public Object writeReplace() throws ObjectStreamException {
  return stub;
    }
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);
  }
    }
View Full Code Here

      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

    {
  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);
    }

    private static void tryWithAcc(AccessControlContext acc,
           final Ping proxy,
           int expectation)
View Full Code Here

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

  try {
      verifySuppression((Pong) exporter.export(new Impl()));

      System.err.println(
    "TEST PASSED (server-side stack trace data suppressed)");
  } finally {
      try {
View Full Code Here

      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new TestILFactory(), false, true);
  RemoteInterface proxy = null;
 
  try {
      proxy = (RemoteInterface) exporter.export(impl);
      try {
    proxy.throwIt(new RuntimeException());
      } catch (RuntimeException e) {
    System.err.println("caught RuntimeException");
      }
View Full Code Here

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

      StackTraceElement[] remoteTrace;
      try {
    __FOO__(stub);
    throw new RuntimeException("TEST FAILED: no exception caught");
View Full Code Here

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

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

      TrustVerifier.Context ctx = new TestContext();
     
      TrustVerifier tv = new Subclass(true, true);
      if (tv.isTrustedObject(proxy, ctx) == true) {
View Full Code Here

  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 {
      stub.ping();
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.