javaee / ejb-spec

See javax.ejb project for API. Contains legacy issues only.
https://github.com/javaee/javax.ejb
6 stars 1 forks source link

Add Simple Timers to @Schedule #107

Open glassfishrobot opened 11 years ago

glassfishrobot commented 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.

glassfishrobot commented 11 years ago

Reported by reza_rahman

glassfishrobot commented 7 years ago

This issue was imported from java.net JIRA EJB_SPEC-107