Example usage for org.springframework.remoting.rmi RmiServiceExporter destroy

List of usage examples for org.springframework.remoting.rmi RmiServiceExporter destroy

Introduction

In this page you can find the example usage for org.springframework.remoting.rmi RmiServiceExporter destroy.

Prototype

@Override
public void destroy() throws RemoteException 

Source Link

Document

Unbind the RMI service from the registry on bean factory shutdown.

Usage

From source file:org.javassonne.networking.impl.RemotingUtils.java

/**
 * Stops the specified named service./*w  w w .  j  a v  a2 s.  c  o  m*/
 * 
 * @param name
 *            - the name of the service to stop
 * @throws RemoteException
 */
public static void shutdownService(String name) throws RemoteException {
    RmiServiceExporter exporter = serviceMap_.get(name);
    if (exporter != null) {
        exporter.destroy();
    }
}