Hi
imho we have two option:
1. Extend the scheduler service and its related commands
using classes in java.util.concurrent package, we can provide more
advanced scheduling capabilities like dynamically
adding/removing/suspending/resuming scheduled tasks. It can have commands
and options like these:
scheduler:list
lists already scheduled tasks
scheduler:schedule
schedules given task base on delay or repeating parameters
scheduler:unschedule
removes given scheduled task from the list
scheduler:suspend
suspends given task
scheduler:resume
resumes an already suspended task
2. Define a new Karaf Feature to have Quartz scheduler in Karaf
Currently there is an OSGi wrapper for Quartz in Apache ServiceMix
(org.apache.servicemix.bundles.quartz) that may be useful to provide
advanced scheduling capabilities.
I think both options have their own pros and cons. The first option would be
enough for most basic situations and no additional dependencies will be
added to the project. The second one is a must have for any enterprise level
project due to large number of options and features provided by Quartz. So a
Karaf Feature to install Quartz bundles into container (like Spring Feature)
could be devised in near future.
Regards
-----
E.Z.Moghaddam
[email protected]
--
View this message in context:
http://karaf.922171.n3.nabble.com/Having-commands-for-scheduler-module-tp4030991p4031001.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.