Server and client for Java instant messaging