I've been looking at converting some of our code to use Spring Integration, and we have a lot of timed jobs that operate in intervals and poll data. The @Polled annotation seems nice for this, except that some of our code relies on the ability to express more complicated job scheduling functionality than just "invoke this every 10 seconds".
I know I could create a manual message endpoint, and trigger it from Quartz, but it would be nice to keep everything inside the nice clean world of annotations.
Has there been any thought given to supporting more "Quartz-like" job control features, such as the ability to specify not just how often a job runs, but when it starts, and ends, etc.?
Also, I see that there is a "initialDelay" property on PollingSourceAdapter, which seems like it would solve some of my concerns, but the @Polled annotation provides no way to set it.


Reply With Quote