title: How to send multiple response for a request using java
body: <p>I am attempting to send multiple responses at certain interval of time for a http-request from client.I am using Spring Boot RESTful web serives which receives a request from AngularJs client. RESTFul web services will get list of jobs from client, i need to send response to the client after the completion of each Job.</p>
  
  <pre><code>@PostMapping("/runExecution")
  public Object sendingMultipleResponse(String input){
  
    for(Object obj : ListOfJobs){
      //performs business logic
      return object;
    }
  
  }
  </code></pre>
  
  <p>Consider 10 Jobs are there in the lists, i need to return the results to the request after the execution of each job.
  NOTE: For a single request from AngularJs, i need to send multiple responses</p>