Spring @Scheduled is executing task twice when using annotations

Posted by newbie on Stack Overflow See other posts from Stack Overflow or by newbie
Published on 2010-05-31T10:30:40Z Indexed on 2010/05/31 10:32 UTC
Read the original article Hit count: 232

Filed under:
|

I have made task using Spring @Scheduled annotation, but for some reason it is executing task twice. My Spring Framework version is 3.0.2.

 @Scheduled(fixedDelay=1000 * 60 * 60* 24)
 @Transactional
 public void dailyReportTask()
 {
  ... code here ...
 }

© Stack Overflow or respective owner

Related posts about spring

Related posts about scheduled-tasks