|
How To use the Timer MBean
As part of the JMX specification each JMX compliant server must provide a timer service to let the users beeing notified at a certain time, in a certain interval and/or number of occurrences. Therefore you can check for mails, check if some change on target (auto deployer) or notify the client for a date.
|
|
Timer Service Overview
The timer service enables you to send predefined notifications at specific dates and times. The notifications are sent to all objects registered to receive notifications emitted by the timer. An object is registered to receive notifications by adding a notification listener interface. The Timer class manages a list of dated notifications. A method is provided that allows you to add/remove notifications into/from the list. If any of the notifications in the list has dates that have passed, the timer either sends them immediately or discards them. This behavior is defined by setting the sendPastNotifications flag.
|
|
Creating a Timer Service MBean
AdventNet JMX Agent has implemented timer as an MBean so that it may be registered in an agent and configured by remote applications. A specific subclass of the notification class is defined for use by the timer MBeans. A Timer MBean can be created by adding the relevant code directly in the generated main file after the initServices() method. The following code snippet is added to the generated main file to register the timer service in the JMX agent.
|
|
How To use the Timer MBean and Scheduler Service on JBoss 3
As part of the JMX specification each JMX compliant agent must provide a timer service to trigger notifications sent at a certain time, in a certain interval and/or number of occurrences. Therefore you can check for mails, check for changes on a target (auto deployer) or notify the client about a date.
|
|
Kronos Enterprise Scheduler
Kronos Enterprise Scheduler is a full-featured job scheduling system written for the Enterprise Java (J2EE) environment.
|
|
What is Flux ?
Flux is a lightweight software component that provides time-based, event-driven, and file-driven job scheduling. Flux is targeted at software manufacturers and software developers who build Java, J2EE, and XML applications for in-house and OEM use. Using Flux, developers can create software applications that react to time and events.
|