Spring 3.1 & Tomcat 7.0.23 & task scheduler multiple invocations
Hi every one,
my spring.xml looks like
Code:
<task:scheduler id="feedServiceScheduler" pool-size="10"/>
<task:scheduled-tasks scheduler="feedServiceScheduler">
<task:scheduled ref="feedService" method="testMethod" cron="0 50 11 * * *" />
</task:scheduled-tasks>
I expect method "testMethod" to be invoked on object "feedService" at 11:50 every day of the year
For some reason testMethod is invoked twice and I just can't find a solution to the problem.
"feedService" bean is nothing fancy, just a simple POJO and test method prints out a message.
Any help about what I might be doing wrong would be great.
Thanks //janskyview