title: method-invoking Spring bean
body: <p>I've declared the following bean in my Spring config</p>
  
  <pre><code>&lt;bean id="templateCacheClearingTask" class="org.springframework.scheduling.timer.ScheduledTimerTask"&gt;
      &lt;property name="delay" value="5000" /&gt;
      &lt;property name="period" value="5000" /&gt;
  
      &lt;property name="timerTask"&gt;
          &lt;bean class="org.springframework.scheduling.timer.MethodInvokingTimerTaskFactoryBean"&gt;
              &lt;property name="targetObject" ref="templateMailService" /&gt;
              &lt;property name="targetMethod" value="clearCache" /&gt;
          &lt;/bean&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>This should cause the <code>clearCache()</code> method of the <code>templateMailService</code> bean to be invoked every 5000ms, but nothing appears to be happening. Am I missing something?</p>
  
  <p>Cheers,
  Don</p>