Hi Ioannis,

This is an excellent idea and could be very helpful for pure java
project requiring scheduler like Quartz on Karaf platform. As
Camel/ActiveMQ already uses Quartz like plenty of Java projects, that
will be a very nice feature to deploy jobs on the platform.

Regards,

Charles Moulliard

Apache Committer

Blog : http://cmoulliard.blogspot.com
Twitter : http://twitter.com/cmoulliard
Linkedin : http://www.linkedin.com/in/charlesmoulliard
Skype: cmoulliard



On Wed, Jul 20, 2011 at 2:38 PM, Ioannis Canellos <[email protected]> wrote:
> Hi,
>
> I added a new module to Karaf. The purpose of this module is to provide
> means for scheduling tasks through the osgi service registry.
>
> The scheduler module registers a ServiceListener that listens for services
> of the java.lang.Runnable interface that also have 2 service properties that
> are required for scheduling:
>
> a) org.apache.karaf.scheduler.task.id (A string identifier for the task that
> is going to be scheduled).
> b) org.apache.karaf.scheduler.task.period (A long number that indicates the
> execution period in milliseconds).
>
> Please note that all Runnable that don't have both properties will be
> ignored. All other will be scheduled for execution via java Timer.
>
> I also plan to add shell commands for listing, rescheduling
> & canceling events. It might be a goog idea to also add properties for
> supporting cron expression etc.
>
> You can find the initial commit in the trunk.
>
> wdyt?
> --
> *Ioannis Canellos*
> *
>  http://iocanel.blogspot.com
>
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> Apache ServiceMix <http://servicemix.apache.org/>  Committer
> *
>

Reply via email to