Package net.jini.jeri

Examples of net.jini.jeri.BasicJeriExporter


     */
    MarshalledObject serverProxy() throws RemoteException, NotBoundException
    {
        MarshalledObject obj = null;
        ServiceHandler handler = new ServiceHandler(this, coordinator);
        BasicJeriExporter exporter = getExporter();
        handler.setExporter(exporter); // needed so it can do the unexport
        if (exporter != null) {
      if (service == null) {
    service = (Remote) createProxy(handler);
    stub = exporter.export(service);
      }
            SmartProxy sp = new SmartProxy(stub, coordinator);
            try {
                obj = new MarshalledObject(sp);
            } catch (IOException e) {
View Full Code Here


     */
    private BasicJeriExporter getExporter() {
        BasicILFactory factory =
            new BasicILFactory(SmartProxy.getMethodConstraints(),
                     SecureServerPermission.class);
        BasicJeriExporter exporter = null;
        try {
            exporter = new BasicJeriExporter(
        ProviderManager.getEndpoint(),
                factory,
                false, // DGC disabled
                true,  // keepalive
                null); // objID
View Full Code Here

            ldm = new LookupDiscoveryManager(groupsToJoin, locatorsToJoin,
                                             null, config);

            ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
            InvocationLayerFactory ilFactory = new BasicILFactory();
            Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                             ilFactory,
                                                             false,
                                                             true);
            if(activationID != null) {
                ProxyPreparer aidPreparer =
View Full Code Here

        }

        /* Handle items and duties related to exporting this service. */
        ServerEndpoint endpoint = TcpServerEndpoint.getInstance(0);
        InvocationLayerFactory ilFactory = new BasicILFactory();
        Exporter defaultExporter = new BasicJeriExporter(endpoint,
                                                         ilFactory,
                                                         false,
                                                         true);
        /* For the activatable server */
        if(activationID != null) {
View Full Code Here

    {
  logger.log(Level.INFO, "Starting VMKiller service");
  exporter =
      new ActivationExporter(
       activationID,
       new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
           new BasicILFactory()));
  ourStub = exporter.export(this);
    }
View Full Code Here

      monPreparer = getPreparer(config,
              "monitorPreparer");
      TcpServerEndpoint se =
          TcpServerEndpoint.getInstance(0);
      Exporter defaultExporter =
          new BasicJeriExporter(se, new AccessILFactory());
      exporter = (Exporter) config.getEntry(
        PHOENIX, "instantiatorExporter",
        Exporter.class, defaultExporter);
      if (exporter == null) {
          exporter = new AlreadyExportedExporter();
View Full Code Here

  if (mobj != null) {
      Callback cb = (Callback) mobj.get();
      cb.activated();
  }
  Exporter basicExporter =
      new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
          new BasicILFactory(), false, true);
  exporter = new ActivationExporter(id, basicExporter);
  stub = exporter.export(this);
    }
View Full Code Here

  RMID rmid = RMID.createRMID();
  rmid.start();
  try {
      ActivationSystem sys = ActivationGroup.getSystem();
      CallbackImpl cb = new CallbackImpl();
      BasicJeriExporter basicExporter =
    new BasicJeriExporter(TcpServerEndpoint.getInstance(0),
              new BasicILFactory(), true, true);
      MarshalledObject mo =
    new MarshalledObject(basicExporter.export(cb));
      Properties props = new Properties();
      props.put("java.security.policy",
          TestParams.testSrc + File.separator +
          "group.security.policy");
      ActivationGroupID gid =
View Full Code Here

 
            exporter = (Exporter)Config.getNonNullEntry(config,
          MERCURY, "serverExporter", Exporter.class,
    new ActivationExporter(
        activationID,
        new BasicJeriExporter(
            TcpServerEndpoint.getInstance(0),
      new BasicILFactory(), false, true)),
    activationID);
            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG, "Activatable service exporter is: {0}",
          exporter);
      }   
  } else { //Get non-activatable configuration items
            exporter = (Exporter) Config.getNonNullEntry(config,
                MERCURY, "serverExporter", Exporter.class,
    new BasicJeriExporter(
        TcpServerEndpoint.getInstance(0),
        new BasicILFactory(), false, true));
            if (initLogger.isLoggable(Level.CONFIG)) {
                initLogger.log(Level.CONFIG,
    "Non-activatable service exporter is: {0}", exporter);   
View Full Code Here

    public NotifyReceiver() throws ConfigurationException, ExportException {
      exporter = (Exporter)
    Config.getNonNullEntry(browser.config, Browser.BROWSER,
         "listenerExporter", Exporter.class,
         new BasicJeriExporter(
               TcpServerEndpoint.getInstance(0),
               new BasicILFactory(),
               false, false));
      proxy = (RemoteEventListener) exporter.export(this);
    }
View Full Code Here

TOP

Related Classes of net.jini.jeri.BasicJeriExporter

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.