Implementation of a chatroom service using Java RMI