Use this method to connect with all participants
connection.connectWithAllParticipants();
This method is useful to switch between oneway to many-to-many.