title: Run Java Code after a Method Return?
body: <p>I have a web service that is based on Java classes. Is it possible to run code after an acknowledge message has been returned within Java method of the called operation.</p>
  
  <p>To understand better, this is the workflow:</p>
  
  <ol>
  <li>Call a specific operation (method) of my web service</li>
  <li>Start processing </li>
  <li>Sent an ack that the processing has been started (this is done be a return value)</li>
  <li>Continue processing</li>
  </ol>
  
  <p>Threads do not work, since the threads need to be terminated before the return of the method. </p>
  
  <p>Does anybody has an idea how to implement this scenario or an alternative to it?</p>
  
  <p>Thanks in advance.</p>