Package java.rmi.server

Examples of java.rmi.server.ExportException


  try {
      proxy = (Remote) Proxy.newProxyInstance(proxyLoader,
                interfaces,
                handler);
  } catch (IllegalArgumentException e) {
      throw new ExportException("unable to create proxy", e);
  }
  InvocationDispatcher dispatcher =
      createInvocationDispatcher(getInvocationDispatcherMethods(impl),
               impl, caps);
  return new Instances(proxy, dispatcher);
View Full Code Here


            new BasicILFactory(),
            true, true);
    } else if (exportType.equals("jrmp")) {
        uexporter = new JrmpExporter();
    } else {
        throw new ExportException("unknown exportType");
    }
    exporter = new ActivationExporter(id, uexporter);
    stub = exporter.export(impl);
      }
      System.err.println("stub = " + stub.toString());
View Full Code Here

      }
      return proxy;
  } catch (ExportException ex) {
      throw ex;
  } catch (RemoteException ex) {
      throw new ExportException("export failed", ex);
  }
    }
View Full Code Here

      LC listenContext = new LC();
      try {
    endpoint =
        serverEndpoint.enumerateListenEndpoints(listenContext);
      } catch (IOException e) {
    throw new ExportException("listen failed", e);
      } finally {
    bindings = listenContext.getFinalBindings();
      }

      RequestDispatcher[] requestDispatchers =
View Full Code Here

        Class stringexc = StringConstructorExceptionPermission.class;
        Class methodexc = MethodConstructorExceptionPermission.class;

        NullPointerException npe     = new NullPointerException();
        IllegalArgumentException iae = new IllegalArgumentException();
        ExportException ee           = new ExportException("");

        ClassLoader loader = this.getClass().getClassLoader();

        cases = new Object[][] {
            //methods,serverCaps,serverConstraints,permClass,classLoader,exc
View Full Code Here

                                                              "serverExporter",
                                                              Exporter.class,
                                                              defaultExporter,
                                                              activationID);
        } catch(ConfigurationException e) {// exception, use default
            throw new ExportException("Configuration exception while "
                                      +"retrieving service's exporter",
                                      e);
        }
        /* Export this service */
        innerProxy = (Fiddler)serverExporter.export(this);
View Full Code Here

TOP

Related Classes of java.rmi.server.ExportException

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.