How do I know if service is completed?
I am running service client method with 1 server and 4 clients. I am running 5 different programs for them. I need to first send data from client1 to server and call for service. After this service is completed, I need to initialise other service with client3 and client4. How do I achieve this? How do I make client3 and client4 call a service after the client2 has finished the service? What I am trying to do is:
- Client2 sends data to Server.
- Server distributes that data among Client2, Client3 and Client4.
- Client2, Client3, Client4 returns back their data to server after processing.
- Server then reorganizes all data and returns final result to Client2.
The main problem now is the data which server gets from Client2 in the starting is not transferred to Client3 by service because server keeps separate threads for clients, I guess.
Step 2 does not automatically work. A server provides a service, but does not distribute data without being called from the outside. Can you either post the relevant sections of your code or, better still, link to a GitHub/whatever repo?