Java client add Connect/Disconnect