final SimpleAccountRealm realm = new SimpleAccountRealm();
realm.addAccount("user1", "pass1");
loginService = new SecureLoginService(realm);
remoteInvocationExecutor = new SecureRemoteInvocationExecutor();
}
SpringRemotingServer springRemotingServer = new SpringRemotingServer(monitoringService, port, host, loginService);
springRemotingServer.setRemoteInvocationExecutor(remoteInvocationExecutor);
springRemotingServer.start();
return this;
}