Distributed chat in Java