@Override protected void onInit() { super.onInit(); if (this.registryHost != null) { this.exporter.setRegistryHost(this.registryHost); } this.exporter.setRegistryPort(this.registryPort); if (this.remoteInvocationExecutor != null) { this.exporter.setRemoteInvocationExecutor(this.remoteInvocationExecutor); } this.exporter.setService(this); this.exporter.setServiceInterface(RequestReplyExchanger.class); this.exporter.setServiceName(SERVICE_NAME_PREFIX + this.requestChannelName); try { this.exporter.afterPropertiesSet(); } catch (RemoteException e) { throw new IllegalStateException(e); } }
public String start(String host, int port) throws RemoteException { String 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; }
public String start(String host, int port) throws RemoteException { String 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; }
@Override protected void onInit() { super.onInit(); if (this.registryHost != null) { this.exporter.setRegistryHost(this.registryHost); } this.exporter.setRegistryPort(this.registryPort); if (this.remoteInvocationExecutor != null) { this.exporter.setRemoteInvocationExecutor(this.remoteInvocationExecutor); } this.exporter.setService(this); this.exporter.setServiceInterface(RequestReplyExchanger.class); this.exporter.setServiceName(SERVICE_NAME_PREFIX + this.requestChannelName); try { this.exporter.afterPropertiesSet(); } catch (RemoteException e) { throw new IllegalStateException(e); } }