JDK-6327040 : Add cron-like scheduling service to JMX
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: javax.management
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: generic
  • Submitted: 2005-09-21
  • Updated: 2010-07-29
  • Resolved: 2005-12-09
Related Reports
Relates :  
Description
The JMX API could be extended to support scheduling operations.  This might be an extension of the existing javax.management.timer.TimerMBean service.  The idea would be to schedule notification emission or operations on other MBeans.  We would like to be able to say, e.g.: Every Thursday at 6pm call start() on all MBeans whose names match somedomain:type=Monitor,* and every Friday at 8am call stop() on the same MBeans.  The idea is to be able to trigger regularly-scheduled tasks.  The particular case of calling start and stop operations could be used to implement the scheduling features of the OSS/J QoS API (JSR 90).

Comments
EVALUATION JSR 255 Expert Group agreed that people who need this sort of functionality can easily build it themselves using a framework such as Quartz. Many already do. Given this, it is not clear that the functionality is sufficiently core to be added to the Java SE API.
09-12-2005

EVALUATION Need to be careful about security issues. Probably this should be tied to a client session (see 6323764) so that the operations are done in the context of the creator of the session, and so that the session can be leased to prevent orphan jobs from running forever.
21-09-2005