You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Guenther Schmidt <sc...@gmail.com> on 2017/12/09 17:22:42 UTC
Scheduler in Karaf
Hello all,
I'm in the process of migrating a project with drowizard based
microservices to Apache Karaf.
So far so good.
I'm using Maven and sometimes things get a bit tricky when I have to
include 3rd party libraries, maven generates package requirements in the
MANIFEST.MF that I have no idea how they got there. But I manage for the
most part by adding these obscure packages to the "Don't import" list
manually.
But the scheduler that ships with Karaf is another story. I can't figure
out how to "reschedule" a job, other than updating the bundle with a new
configuration.
Am I doing something wrong or is that just the way it is?
Guenther
Re: Scheduler in Karaf
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Guenther,
The scheduler can schedule shell commands or Runnable services.
When using Runnable services, the scheduler configuration is defined as service
properties.
However, if you want to change the scheduling or suspend/resume a scheduling,
it's not actually possible easily today.
I created the following Jira:
https://issues.apache.org/jira/browse/KARAF-5486
You will have "extended" commands to have more fine-grained control over the
scheduling of the job.
It should be including in the coming 4.1.4 and 4.2.0 releases.
Regards
JB
On 12/09/2017 06:22 PM, Guenther Schmidt wrote:
> Hello all,
>
> I'm in the process of migrating a project with drowizard based microservices to
> Apache Karaf.
>
> So far so good.
>
> I'm using Maven and sometimes things get a bit tricky when I have to include 3rd
> party libraries, maven generates package requirements in the MANIFEST.MF that I
> have no idea how they got there. But I manage for the most part by adding these
> obscure packages to the "Don't import" list manually.
>
> But the scheduler that ships with Karaf is another story. I can't figure out how
> to "reschedule" a job, other than updating the bundle with a new configuration.
>
> Am I doing something wrong or is that just the way it is?
>
> Guenther
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com