title: How to execute method using spring beans
body: <p>I need findItemByPIdEndDate() method of the MngtImpl class to be invoked every 5000ms, but nothing appears to be happening. Am I missing something?</p>
  
  <pre><code>&lt;bean id="findItemByPIdEndDate" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt;
    &lt;property name="targetObject" ref="MngtImpl"/&gt;
    &lt;property name="targetMethod" value="findItemByPIdEndDate"/&gt;
    &lt;property name="repeatInterval" value="50000"/&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>@matt b I've read some of this, everything is new to me here ..so I came with this .. and again its not working, what am I missing this time ?</p>
  
  <pre><code>&lt;bean id="findItemByPIdEndDate" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean"&gt;
    &lt;property name="targetObject" ref="MngtImpl" /&gt;
    &lt;property name="targetMethod" value="findItemByPIdEndDate" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="compareDateTrigger" class="org.springframework.scheduling.quartz.SimpleTriggerBean"&gt;
      &lt;property name="jobDetail" ref="findItemByPIdEndDate" /&gt;
      &lt;property name="startDelay" value="0" /&gt;
      &lt;property name="repeatInterval" value="50000" /&gt;
  &lt;/bean&gt;
  </code></pre>