The main motive of JGroups API is for clustering, what you are trying to achieve is a sustained socket connection.
You can create a client server like architecture using JGroups based on their node ranks. But for this you need to be a but more clear with the requirements.