Chat application in Java using JGroups