Spring Framework RmiServiceExporter - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework RmiServiceExporter class.

This code example shows how to use the following methods:afterPropertiesSet, setAlwaysCreateRegistry, setRegistryHost, setRegistryPort, setServiceName
        this.port = port;
        initial(); 
    } 
 
    public void initial() { 
        export = new RmiServiceExporter();
        export.setServiceName("endpoint");
        export.setService(this);// 暴露自己
        export.setServiceInterface(CommunicationEndpoint.class);
        export.setRegistryHost(host);
        export.setRegistryPort(port);
        export.setAlwaysCreateRegistry(alwaysCreateRegistry);// 强制创建一个
 
        try { 
            export.afterPropertiesSet();
        } catch (RemoteException e) {
            throw new CommunicationException("Rmi_Create_Error", e);
        } 
 
    } 
7
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:afterPropertiesSet, setRegistryHost, setRegistryPort, setServiceName, setService
    } 
 
    public String start(String host, int port) throws RemoteExceptionString name = inputStream.getClass().getName() + UUID.randomUUID();
        rmiServiceExporter = new RmiServiceExporter();
        rmiServiceExporter.setServiceName(name);
        rmiServiceExporter.setRegistryPort(port);
        rmiServiceExporter.setRegistryHost(host);
        rmiServiceExporter.setServiceInterface(RemoteInputStreamServer.class);
        rmiServiceExporter.setService(this);
        rmiServiceExporter.afterPropertiesSet();
        return name;
    } 
 
    /** 
     * Closes the stream and the RMI connection to the peer. 
     */ 
    public void close() throws IOException
6
CodeRank
Experience pair programming with AI  Get Codota for Java
This code example shows how to use the following methods:destroy
     
    public void destroy() throws RemoteException  
    { 
        if(enabled) 
        { 
            super.destroy(); 
        } 
    } 
     
} 
4
CodeRank
Experience pair programming with AI  Get Codota for Java
See Code Examples for Spring Framework RmiServiceExporter Methods: