Configure RMI in client and server