How can I implement a timer on JBoss 4.2.2 in a vendor independent way.
Requirements:
- trigger logic in a defined interval
- start the timer at startup
- no dependencies to JBoss specific libraries / functionality
- do not use a servlet to start the timer
But I see only this possibilites:
Implement the interface org.jboss.varia.scheduler.Schedulable
Use ejb3 combined with a MBean (MBean for starting the timer)
Use javax.management.timer.Timer as MBean