Open glassfishrobot opened 11 years ago
Currently @Schedule only supports cron style timers. I think the @Schedule annotation could also support simple timers like this:
@Schedule(initialDuration=..., intervalDuration=...) @Schedule(expiration=...) @Schedule(duration=...)
... and so on. This would more closely mirror the capabilities available in the TimerService API.
Do let me know if anything needs to be explained further - I am happy to help.
Please note that these are purely my personal views and certainly not of Oracle's as a company.
Reported by reza_rahman
This issue was imported from java.net JIRA EJB_SPEC-107
Currently @Schedule only supports cron style timers. I think the @Schedule annotation could also support simple timers like this:
@Schedule(initialDuration=..., intervalDuration=...) @Schedule(expiration=...) @Schedule(duration=...)
... and so on. This would more closely mirror the capabilities available in the TimerService API.
Do let me know if anything needs to be explained further - I am happy to help.
Please note that these are purely my personal views and certainly not of Oracle's as a company.