-
1. Re: Scheduling in Jboss AS 7
alesj Dec 1, 2011 7:16 AM (in response to zenzei2k)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, ...
-
2. Re: Scheduling in Jboss AS 7
zenzei2k Dec 1, 2011 12:44 PM (in response to alesj)Thanks Justin, I'll try to use Ejb timers then.
Regards,
-
3. Re: Scheduling in Jboss AS 7
dabramov Jun 7, 2012 2:37 PM (in response to zenzei2k)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?
Thanks,
-Dan
-
4. Re: Scheduling in Jboss AS 7
bmaxwell Sep 30, 2015 7:50 PM (in response to dabramov)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.
-
5. Re: Scheduling in Jboss AS 7
wdfink Oct 3, 2015 7:11 AM (in response to dabramov)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.
-
6. Re: Scheduling in Jboss AS 7
piyushgoel996 Nov 30, 2016 6:07 AM (in response to alesj)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.
-
7. Re: Scheduling in Jboss AS 7
alesj Nov 30, 2016 6:13 AM (in response to piyushgoel996)Varia was long gone in 2011, now it's 2016 ... :-)
So I suggest you use EJB timers -- as that'w why they were introduced.