2 of 2 people found this helpful
"varia" is long gone.
Perhaps try using EJB timers/schedulers or bundle Quartz with AS7.
In the worst case you could try porting that varia code, making it a module, configuring mbeans, ...
Thanks Justin, I'll try to use Ejb timers then.
The old scheduler allowed for very simple management of the timers. In a few clicks in jmx-console and I could stop / start / change the period of the scheudle. From what I can tell none of this is possible without significant custom development on top of EJB timers. I'm really rather hoping I'm wrong here. How are the EJB timers managed?
You could just make an @Singleton and have it bind itself into the MBean Server, the @Singleton can have the methods you want show up in jconsole, then the @Singleton can make calls to an @Stateless EJB that has @Timeout ejb timers.
If you need a fix scheduler you might use @Schedule.
A programatic way is to use the TimerService there are several methods to create scheduled, recurring or single action timers.
You can use it with @Singleton or @Stateless beans dependent from your requirements.
Thanks @ales justin
Could you please tell me that how to do porting that varia code, making it a module, configuring mbeans, ... which you have mentioned.
Varia was long gone in 2011, now it's 2016 ... :-)
So I suggest you use EJB timers -- as that'w why they were introduced.