Package java.rmi.registry

Examples of java.rmi.registry.Registry.unbind()


        TestNG testNG = new TestNG();
        testNG.setVerbose(0);
        testNG.setTestClasses(new Class[] { FilterTest.class, InjectTest.class });
        testNG.run();

        registry.unbind("PaxExamNotifier");
        UnicastRemoteObject.unexportObject(this, true);
        UnicastRemoteObject.unexportObject(registry, true);

        assertEquals(messages.size(), numRestarts);
    }
View Full Code Here


      frame.addWindowListener(new WindowAdapter() {
        public void windowClosed(WindowEvent event) {
          System.err.print("Shutting down...");
          try {
            registry.unbind("AuthenticationService");
            System.err.println("OK");
          } catch (Exception e) {
            e.printStackTrace();
          }
          System.exit(0);
View Full Code Here

                .getRMIRegistryHost(), resources.getRMIRegistryPort());

        String bindName = resources.getRMIBindName();
       
        try {
            registry.unbind(bindName);
            UnicastRemoteObject.unexportObject(this, true);
        } catch (java.rmi.NotBoundException nbe) {
        }

        getLog().info("Scheduler un-bound from name '" + bindName + "' in RMI registry");
View Full Code Here

                .getRMIRegistryHost(), resources.getRMIRegistryPort());

        String bindName = resources.getRMIBindName();
       
        try {
            registry.unbind(bindName);
            UnicastRemoteObject.unexportObject(this, true);
        } catch (java.rmi.NotBoundException nbe) {
        }

        getLog().info("Scheduler un-bound from name '" + bindName + "' in RMI registry");
View Full Code Here

    }

    private void unregister(final int regPort, final String name) {
        try {
            Registry registry = LocateRegistry.getRegistry(regPort);
            registry.unbind(name);
            logger.info("Unbound failed ServiceBean fork for [{}]", name);
        } catch (Exception e1) {
            // ignore
        }
    }
View Full Code Here

        }

        public void serviceFailure(final Object service, final String serviceID) {
            try {
                Registry registry = LocateRegistry.getRegistry(registryPort);
                registry.unbind(name);
                logger.info("Terminated ServiceBean fork for [{}] unbound from local registry", name);
            } catch (Exception e) {
                // ignore
            }
            serviceDiscarded(null);
View Full Code Here

      // Create an RMI registry
      int rmiServerPort = connectionInfo.getRmiServerPort();
      Registry registry = LocateRegistry.getRegistry(rmiServerPort);

      // Unbind the service from the RMI registry
      registry.unbind(CoreConstants.RMI_BINDING_NAME);
    }
    catch (NotBoundException e)
    {
      // Ignore
    }
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.