title: Delay task:scheduler first execution in Spring 3
body: <p>I have a simple application that uses Spring 3 for dependency injection. I have a JFrame for the user to look at and some background tasks for synchronizing with a back-end server and local database maintenance. </p>
  
  <p>This is the relevant part of my application context:</p>
  
  <pre><code>&lt;task:scheduler id="scheduler" pool-size="1"/&gt;
  &lt;task:scheduled-tasks scheduler="scheduler"&gt;
      &lt;task:scheduled ref="synchronizer" method="incrementalSync" fixed-delay="600000"/&gt;
      ... more tasks ...
  &lt;/task:scheduled-tasks&gt;
  
  &lt;bean id="mainFrame" class="nl.gdries.myapp.client.ui.MainFrame"&gt;
      ... properties and such ...
  &lt;/bean&gt;
  </code></pre>
  
  <p>When I start this applicationContext the scheduler immediately starts executing the background tasks even while my UI is loading. Because the first task is a rather heavy one at the start I want it to wait for the UI to fully load and display before it starts execution.</p>
  
  <p>Does anyone know how to tell Spring to delay executing the scheduled tasks until a moment of my choosing?</p>