Package net.jini.export

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


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

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


            new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(),
          false,
          true));
        // Export server instance and get its reference
        serverStub = exporter.export(this);
    }

    protected Object getNonNullEntry(Configuration config,
                                     String name,
                                     Class type,
View Full Code Here

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

  // create the lease factory
  try {
      Class[] args = new Class[] { LeaseBackEnd.class };
      Constructor constr = factoryClass.getConstructor(args);
View Full Code Here

            new BasicJeriExporter(
                TcpServerEndpoint.getInstance(0), new BasicILFactory(), false, true));
        System.out.println("service exporter is: "
            +  exporter);
        // Export server instance and get its reference
        serverStub = (TestService)exporter.export(this);
        System.out.println("Service stub is: " + serverStub);
       
        // Store class loader ref in shared map
        TestServiceSharedMap.storeClassLoader(
            uuid, this.getClass().getClassLoader());
View Full Code Here

    exporter =
    (Exporter) c.getEntry("test",
              "outriggerListenerExporter",
              Exporter.class);
      }
      proxy = exporter.export(this);
  } catch (ConfigurationException e) {
      throw new RemoteException("Bad configuration", e);
  }
    }
View Full Code Here

               ProxyPreparer.class);
    } catch (ConfigurationException e) {
        throw new RemoteException("Configuration error", e);
    }
      }
      proxy = exporter.export(this);
        }//end constructor

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

      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration problem", e);
      }
  }
  listenerMap.put(listener, exporter);
  return exporter.export(listener);

    }

    protected void unexportListener(RemoteEventListener l, boolean force) {
  Exporter exporter = (Exporter) listenerMap.get(l);
View Full Code Here

    (Exporter) c.getEntry("test", "outriggerListenerExporter", Exporter.class);
          context = (LoginContext) c.getEntry("test",
                    "spaceLoginContext",
                    LoginContext.class);
      }
      proxy = exporter.export(this);
      if (context != null) {
    context.login();
      }
  } catch (ConfigurationException e) {
      throw new RuntimeException("Bad configuration", e);
View Full Code Here

             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration error", e);
      }
  }
  myRef = exporter.export(this);
  proxy = TesterTransactionManagerProxy.getInstance(
         (TransactionManager) myRef, serviceID++);
    }
   
    private void doExportWithLogin(LoginContext context, final Configuration c)
View Full Code Here

             Exporter.class);
      } catch (ConfigurationException e) {
    throw new RemoteException("Configuration Error", e);
      }
  }
  proxy = (TransactionParticipant)exporter.export(this);
    }

    public Object getProxy() {
  return proxy;
    }
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.