title: Stopping <task:scheduler> tasks
body: <p>Our application runs both in client server mode and in standalone mode, when server code is embedded in the client process.
  In spring beans xml I have scheduled tasks, like</p>
  
  <pre><code>&lt;task:scheduled-tasks scheduler="myScheduler"&gt;
          &lt;task:scheduled ref="link-to-server" method="heartbeat" fixed-rate="1000"/&gt;
  &lt;/task:scheduled-tasks&gt;
  </code></pre>
  
  <p>In the standalone mode the application is not exiting, because scheduler threads are not daemon threads. How can I stop them or make these threads daemon?</p>
  
  <p>Thank you!</p>