Java simple communicator