In Spring 3.0, are scheduled task methods annotated with @Scheduled already transactional? If not, will annotating the same method as @Transactional work? That is, will the scheduler honour the transaction annotation?
In Spring 3.0, are scheduled task methods annotated with @Scheduled already transactional? If not,
Share
As far I known, the answer is no,
@Scheduleddoesn’t care about transactions. Add@Transactionalmanually, it should work (also you may check it yourself by enabling debug messages and watching to log).