RMI example in Java