You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Васил Зорев <va...@gmail.com> on 2021/04/13 17:45:02 UTC

How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Hello,

Following the karaf-scheduler-example for a Runnable service (
https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable)
i implemented a similar Job-based service. Please see attached the Job
itself and its pom.xml. I placed it in a module within the existing
examples project only for local testing purpose, so please don't mind the
official groupId/package..

Then the job was executed 5 times as expected, but each time if i tried to
read from the JobContext the configuration attribute, it is always null
(org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure
out by looking at the scheduler sources
(org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled,
but couldn't find that there is any configuration set there in any case.
Please tell me if i missed something, if such configuration would be
available to the job implementor at all in any case, and what to expect
there ?



Hope you got my question..

Thank you,

Regards,

Vassil Zorev

Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Yes, the Karaf scheduler "façade" Quartz. The reason why we did this way is that we can change the implementation of the scheduler without impacting scheduler client.

Happy it works for you ;)

Regards
JB

> Le 14 avr. 2021 à 21:16, Васил Зорев <va...@gmail.com> a écrit :
> 
> Just for info, scheduling the job manually via scheduler.schedule(job, options) made the extra configuration available during job execution. I just had to inject (and call) the interface org.apache.karaf.scheduler.Scheduler and not the QuartzScheduler implementation as the implementation i think is not made available as an exported package. Thank you again.
> 
> На ср, 14.04.2021 г. в 10:34 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
> Don’t hesitate to ping me if you have any question or issue.
> 
> Regards
> JB
> 
>> Le 14 avr. 2021 à 08:06, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>> 
>> Yes, i saw this this morning, and provided a sample scheduling in the second thread message via scheduler.schedule(job, options).
>> I didn't try it yet but will do later today and if you also say that's the way to go i hope it will work as is :)
>> 
>> Regards,
>> Vassil
>> 
>> На ср, 14.04.2021 г. в 8:48 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
>> Hi Vassil,
>> 
>> Yes, you are right about the service properties: it’s "only" the "core" scheduler property (like cron syntax, etc).
>> 
>> It’s basically the ScheduleOptions you can pass directly via the scheduler service:
>> 
>> scheduler.schedule(job, options);
>> 
>> In the ScheduleOptions, you can pass a Map<String, Serializable>:
>> 
>> options.config(myconfig);
>> 
>> This should be passed to the JobContext.
>> 
>> Is it what you are doing ?
>> 
>> Regards
>> JB
>> 
>>> Le 14 avr. 2021 à 07:36, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>>> 
>>> Hi Jean-Baptiste,
>>> 
>>> Thank you for your input. 
>>> If i got it right, via the job service properties i can only set the config values defined in org.apache.karaf.scheduler.Scheduler, such as scheduler.period, scheduler. times, scheduler. expression etc.
>>> I mean to access "extra" configuration via JobContext.getConfiguration().
>>> 
>>> Please elaborate a bit on the manipulating the JobContext part. I am not on my home pc currently so cannot check the wiring you mention, but will do later today probably. What kind of check exactly do you mean?
>>> 
>>> Regards,
>>> Vassil
>>> 
>>> На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
>>> Hi,
>>> 
>>> By default, the scheduler config are passed via the job service properties.
>>> 
>>> If you want more "control", like manipulating the JobContext, it’s also possible. You have to import the scheduler package in your job controller.
>>> 
>>> Can you check the wiring ?
>>> 
>>> Regards
>>> JB
>>> 
>>>> Le 13 avr. 2021 à 19:45, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>>>> 
>>>> Hello,
>>>> 
>>>> Following the karaf-scheduler-example for a Runnable service (https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable <https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable>) i implemented a similar Job-based service. Please see attached the Job itself and its pom.xml. I placed it in a module within the existing examples project only for local testing purpose, so please don't mind the official groupId/package..
>>>> 
>>>> Then the job was executed 5 times as expected, but each time if i tried to read from the JobContext the configuration attribute, it is always null (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure out by looking at the scheduler sources (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled, but couldn't find that there is any configuration set there in any case. Please tell me if i missed something, if such configuration would be available to the job implementor at all in any case, and what to expect there ?
>>>> 
>>>>  
>>>> Hope you got my question..
>>>> 
>>>> Thank you,
>>>> 
>>>> Regards,
>>>> 
>>>> Vassil Zorev
>>>> 
>>>> <SampleJob.java><pom.xml>
>>> 
>> 
> 


Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Васил Зорев <va...@gmail.com>.
Just for info, scheduling the job manually via scheduler.schedule(job,
options) made the extra configuration available during job execution. I
just had to inject (and call) the
interface org.apache.karaf.scheduler.Scheduler and not the QuartzScheduler
implementation as the implementation i think is not made available as an
exported package. Thank you again.

На ср, 14.04.2021 г. в 10:34 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
написа:

> Don’t hesitate to ping me if you have any question or issue.
>
> Regards
> JB
>
> Le 14 avr. 2021 à 08:06, Васил Зорев <va...@gmail.com> a écrit :
>
> Yes, i saw this this morning, and provided a sample scheduling in the
> second thread message via scheduler.schedule(job, options).
> I didn't try it yet but will do later today and if you also say that's the
> way to go i hope it will work as is :)
>
> Regards,
> Vassil
>
> На ср, 14.04.2021 г. в 8:48 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
> написа:
>
>> Hi Vassil,
>>
>> Yes, you are right about the service properties: it’s "only" the "core"
>> scheduler property (like cron syntax, etc).
>>
>> It’s basically the ScheduleOptions you can pass directly via the
>> scheduler service:
>>
>> scheduler.schedule(job, options);
>>
>> In the ScheduleOptions, you can pass a Map<String, Serializable>:
>>
>> options.config(myconfig);
>>
>> This should be passed to the JobContext.
>>
>> Is it what you are doing ?
>>
>> Regards
>> JB
>>
>> Le 14 avr. 2021 à 07:36, Васил Зорев <va...@gmail.com> a écrit :
>>
>> Hi Jean-Baptiste,
>>
>> Thank you for your input.
>> If i got it right, via the job service properties i can only set the
>> config values defined in org.apache.karaf.scheduler.Scheduler, such as
>> scheduler.period, scheduler. times, scheduler. expression etc.
>> I mean to access "extra" configuration via JobContext.getConfiguration().
>>
>> Please elaborate a bit on the manipulating the JobContext part. I am not
>> on my home pc currently so cannot check the wiring you mention, but will do
>> later today probably. What kind of check exactly do you mean?
>>
>> Regards,
>> Vassil
>>
>> На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
>> написа:
>>
>>> Hi,
>>>
>>> By default, the scheduler config are passed via the job service
>>> properties.
>>>
>>> If you want more "control", like manipulating the JobContext, it’s also
>>> possible. You have to import the scheduler package in your job controller.
>>>
>>> Can you check the wiring ?
>>>
>>> Regards
>>> JB
>>>
>>> Le 13 avr. 2021 à 19:45, Васил Зорев <va...@gmail.com> a écrit
>>> :
>>>
>>> Hello,
>>>
>>> Following the karaf-scheduler-example for a Runnable service (
>>> https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable)
>>> i implemented a similar Job-based service. Please see attached the Job
>>> itself and its pom.xml. I placed it in a module within the existing
>>> examples project only for local testing purpose, so please don't mind the
>>> official groupId/package..
>>>
>>> Then the job was executed 5 times as expected, but each time if i tried
>>> to read from the JobContext the configuration attribute, it is always null
>>> (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure
>>> out by looking at the scheduler sources
>>> (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled,
>>> but couldn't find that there is any configuration set there in any case.
>>> Please tell me if i missed something, if such configuration would be
>>> available to the job implementor at all in any case, and what to expect
>>> there ?
>>>
>>>
>>> Hope you got my question..
>>>
>>> Thank you,
>>>
>>> Regards,
>>>
>>> Vassil Zorev
>>> <SampleJob.java><pom.xml>
>>>
>>>
>>>
>>
>

Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Don’t hesitate to ping me if you have any question or issue.

Regards
JB

> Le 14 avr. 2021 à 08:06, Васил Зорев <va...@gmail.com> a écrit :
> 
> Yes, i saw this this morning, and provided a sample scheduling in the second thread message via scheduler.schedule(job, options).
> I didn't try it yet but will do later today and if you also say that's the way to go i hope it will work as is :)
> 
> Regards,
> Vassil
> 
> На ср, 14.04.2021 г. в 8:48 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
> Hi Vassil,
> 
> Yes, you are right about the service properties: it’s "only" the "core" scheduler property (like cron syntax, etc).
> 
> It’s basically the ScheduleOptions you can pass directly via the scheduler service:
> 
> scheduler.schedule(job, options);
> 
> In the ScheduleOptions, you can pass a Map<String, Serializable>:
> 
> options.config(myconfig);
> 
> This should be passed to the JobContext.
> 
> Is it what you are doing ?
> 
> Regards
> JB
> 
>> Le 14 avr. 2021 à 07:36, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>> 
>> Hi Jean-Baptiste,
>> 
>> Thank you for your input. 
>> If i got it right, via the job service properties i can only set the config values defined in org.apache.karaf.scheduler.Scheduler, such as scheduler.period, scheduler. times, scheduler. expression etc.
>> I mean to access "extra" configuration via JobContext.getConfiguration().
>> 
>> Please elaborate a bit on the manipulating the JobContext part. I am not on my home pc currently so cannot check the wiring you mention, but will do later today probably. What kind of check exactly do you mean?
>> 
>> Regards,
>> Vassil
>> 
>> На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
>> Hi,
>> 
>> By default, the scheduler config are passed via the job service properties.
>> 
>> If you want more "control", like manipulating the JobContext, it’s also possible. You have to import the scheduler package in your job controller.
>> 
>> Can you check the wiring ?
>> 
>> Regards
>> JB
>> 
>>> Le 13 avr. 2021 à 19:45, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>>> 
>>> Hello,
>>> 
>>> Following the karaf-scheduler-example for a Runnable service (https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable <https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable>) i implemented a similar Job-based service. Please see attached the Job itself and its pom.xml. I placed it in a module within the existing examples project only for local testing purpose, so please don't mind the official groupId/package..
>>> 
>>> Then the job was executed 5 times as expected, but each time if i tried to read from the JobContext the configuration attribute, it is always null (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure out by looking at the scheduler sources (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled, but couldn't find that there is any configuration set there in any case. Please tell me if i missed something, if such configuration would be available to the job implementor at all in any case, and what to expect there ?
>>> 
>>>  
>>> Hope you got my question..
>>> 
>>> Thank you,
>>> 
>>> Regards,
>>> 
>>> Vassil Zorev
>>> 
>>> <SampleJob.java><pom.xml>
>> 
> 


Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Васил Зорев <va...@gmail.com>.
Yes, i saw this this morning, and provided a sample scheduling in the
second thread message via scheduler.schedule(job, options).
I didn't try it yet but will do later today and if you also say that's the
way to go i hope it will work as is :)

Regards,
Vassil

На ср, 14.04.2021 г. в 8:48 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
написа:

> Hi Vassil,
>
> Yes, you are right about the service properties: it’s "only" the "core"
> scheduler property (like cron syntax, etc).
>
> It’s basically the ScheduleOptions you can pass directly via the scheduler
> service:
>
> scheduler.schedule(job, options);
>
> In the ScheduleOptions, you can pass a Map<String, Serializable>:
>
> options.config(myconfig);
>
> This should be passed to the JobContext.
>
> Is it what you are doing ?
>
> Regards
> JB
>
> Le 14 avr. 2021 à 07:36, Васил Зорев <va...@gmail.com> a écrit :
>
> Hi Jean-Baptiste,
>
> Thank you for your input.
> If i got it right, via the job service properties i can only set the
> config values defined in org.apache.karaf.scheduler.Scheduler, such as
> scheduler.period, scheduler. times, scheduler. expression etc.
> I mean to access "extra" configuration via JobContext.getConfiguration().
>
> Please elaborate a bit on the manipulating the JobContext part. I am not
> on my home pc currently so cannot check the wiring you mention, but will do
> later today probably. What kind of check exactly do you mean?
>
> Regards,
> Vassil
>
> На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
> написа:
>
>> Hi,
>>
>> By default, the scheduler config are passed via the job service
>> properties.
>>
>> If you want more "control", like manipulating the JobContext, it’s also
>> possible. You have to import the scheduler package in your job controller.
>>
>> Can you check the wiring ?
>>
>> Regards
>> JB
>>
>> Le 13 avr. 2021 à 19:45, Васил Зорев <va...@gmail.com> a écrit :
>>
>> Hello,
>>
>> Following the karaf-scheduler-example for a Runnable service (
>> https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable)
>> i implemented a similar Job-based service. Please see attached the Job
>> itself and its pom.xml. I placed it in a module within the existing
>> examples project only for local testing purpose, so please don't mind the
>> official groupId/package..
>>
>> Then the job was executed 5 times as expected, but each time if i tried
>> to read from the JobContext the configuration attribute, it is always null
>> (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure
>> out by looking at the scheduler sources
>> (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled,
>> but couldn't find that there is any configuration set there in any case.
>> Please tell me if i missed something, if such configuration would be
>> available to the job implementor at all in any case, and what to expect
>> there ?
>>
>>
>> Hope you got my question..
>>
>> Thank you,
>>
>> Regards,
>>
>> Vassil Zorev
>> <SampleJob.java><pom.xml>
>>
>>
>>
>

Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Vassil,

Yes, you are right about the service properties: it’s "only" the "core" scheduler property (like cron syntax, etc).

It’s basically the ScheduleOptions you can pass directly via the scheduler service:

scheduler.schedule(job, options);

In the ScheduleOptions, you can pass a Map<String, Serializable>:

options.config(myconfig);

This should be passed to the JobContext.

Is it what you are doing ?

Regards
JB

> Le 14 avr. 2021 à 07:36, Васил Зорев <va...@gmail.com> a écrit :
> 
> Hi Jean-Baptiste,
> 
> Thank you for your input. 
> If i got it right, via the job service properties i can only set the config values defined in org.apache.karaf.scheduler.Scheduler, such as scheduler.period, scheduler. times, scheduler. expression etc.
> I mean to access "extra" configuration via JobContext.getConfiguration().
> 
> Please elaborate a bit on the manipulating the JobContext part. I am not on my home pc currently so cannot check the wiring you mention, but will do later today probably. What kind of check exactly do you mean?
> 
> Regards,
> Vassil
> 
> На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> написа:
> Hi,
> 
> By default, the scheduler config are passed via the job service properties.
> 
> If you want more "control", like manipulating the JobContext, it’s also possible. You have to import the scheduler package in your job controller.
> 
> Can you check the wiring ?
> 
> Regards
> JB
> 
>> Le 13 avr. 2021 à 19:45, Васил Зорев <vassil.zorev87@gmail.com <ma...@gmail.com>> a écrit :
>> 
>> Hello,
>> 
>> Following the karaf-scheduler-example for a Runnable service (https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable <https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable>) i implemented a similar Job-based service. Please see attached the Job itself and its pom.xml. I placed it in a module within the existing examples project only for local testing purpose, so please don't mind the official groupId/package..
>> 
>> Then the job was executed 5 times as expected, but each time if i tried to read from the JobContext the configuration attribute, it is always null (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure out by looking at the scheduler sources (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled, but couldn't find that there is any configuration set there in any case. Please tell me if i missed something, if such configuration would be available to the job implementor at all in any case, and what to expect there ?
>> 
>>  
>> Hope you got my question..
>> 
>> Thank you,
>> 
>> Regards,
>> 
>> Vassil Zorev
>> 
>> <SampleJob.java><pom.xml>
> 


Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Васил Зорев <va...@gmail.com>.
Hi Jean-Baptiste,

Thank you for your input.
If i got it right, via the job service properties i can only set the config
values defined in org.apache.karaf.scheduler.Scheduler, such as
scheduler.period, scheduler. times, scheduler. expression etc.
I mean to access "extra" configuration via JobContext.getConfiguration().

Please elaborate a bit on the manipulating the JobContext part. I am not on
my home pc currently so cannot check the wiring you mention, but will do
later today probably. What kind of check exactly do you mean?

Regards,
Vassil

На ср, 14.04.2021 г. в 8:15 ч. Jean-Baptiste Onofre <jb...@nanthrax.net>
написа:

> Hi,
>
> By default, the scheduler config are passed via the job service properties.
>
> If you want more "control", like manipulating the JobContext, it’s also
> possible. You have to import the scheduler package in your job controller.
>
> Can you check the wiring ?
>
> Regards
> JB
>
> Le 13 avr. 2021 à 19:45, Васил Зорев <va...@gmail.com> a écrit :
>
> Hello,
>
> Following the karaf-scheduler-example for a Runnable service (
> https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable)
> i implemented a similar Job-based service. Please see attached the Job
> itself and its pom.xml. I placed it in a module within the existing
> examples project only for local testing purpose, so please don't mind the
> official groupId/package..
>
> Then the job was executed 5 times as expected, but each time if i tried to
> read from the JobContext the configuration attribute, it is always null
> (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure
> out by looking at the scheduler sources
> (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled,
> but couldn't find that there is any configuration set there in any case.
> Please tell me if i missed something, if such configuration would be
> available to the job implementor at all in any case, and what to expect
> there ?
>
>
> Hope you got my question..
>
> Thank you,
>
> Regards,
>
> Vassil Zorev
> <SampleJob.java><pom.xml>
>
>
>

Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

By default, the scheduler config are passed via the job service properties.

If you want more "control", like manipulating the JobContext, it’s also possible. You have to import the scheduler package in your job controller.

Can you check the wiring ?

Regards
JB

> Le 13 avr. 2021 à 19:45, Васил Зорев <va...@gmail.com> a écrit :
> 
> Hello,
> 
> Following the karaf-scheduler-example for a Runnable service (https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable <https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable>) i implemented a similar Job-based service. Please see attached the Job itself and its pom.xml. I placed it in a module within the existing examples project only for local testing purpose, so please don't mind the official groupId/package..
> 
> Then the job was executed 5 times as expected, but each time if i tried to read from the JobContext the configuration attribute, it is always null (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure out by looking at the scheduler sources (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled, but couldn't find that there is any configuration set there in any case. Please tell me if i missed something, if such configuration would be available to the job implementor at all in any case, and what to expect there ?
> 
>  
> Hope you got my question..
> 
> Thank you,
> 
> Regards,
> 
> Vassil Zorev
> 
> <SampleJob.java><pom.xml>


Re: How to get any configuration within the job context of a org.apache.karaf.scheduler.Job

Posted by Васил Зорев <va...@gmail.com>.
I guess to have access to any extra configuration during job execution i
have to schedule the job manually and not via the "whiteboard pattern", so
similar to:

    @Reference
    QuartzScheduler scheduler;

    @Context
    private BundleContext context;

    public void doSchedule()
    {
        final Calendar cal = Calendar.getInstance();
        cal.add(Calendar.DATE, 1);
        Date tomorrow = cal.getTime();
        ScheduleOptions scheduleOptions = this.scheduler.AT(tomorrow, 5,
10);
        Map<String, Serializable> extraConfig = new HashMap<>();
        extraConfig.put("scheduledBy", context.getBundle().getBundleId());
        scheduleOptions.config(extraConfig);
        try {
            this.scheduler.schedule(new SampleJob(), scheduleOptions);
        } catch (SchedulerError schedulerError) {
            schedulerError.printStackTrace();
        }
    }

then during job execution i can access this "scheduledBy" property via the
config.

Is this the case?

Thank you,
Vassil

На вт, 13.04.2021 г. в 20:45 ч. Васил Зорев <va...@gmail.com>
написа:

> Hello,
>
> Following the karaf-scheduler-example for a Runnable service (
> https://github.com/apache/karaf/tree/main/examples/karaf-scheduler-example/karaf-scheduler-example-runnable)
> i implemented a similar Job-based service. Please see attached the Job
> itself and its pom.xml. I placed it in a module within the existing
> examples project only for local testing purpose, so please don't mind the
> official groupId/package..
>
> Then the job was executed 5 times as expected, but each time if i tried to
> read from the JobContext the configuration attribute, it is always null
> (org.apache.karaf.scheduler.JobContext#getConfiguration). I tried to figure
> out by looking at the scheduler sources
> (org.apache.karaf.scheduler.core.QuartzScheduler) how the job is scheduled,
> but couldn't find that there is any configuration set there in any case.
> Please tell me if i missed something, if such configuration would be
> available to the job implementor at all in any case, and what to expect
> there ?
>
>
>
> Hope you got my question..
>
> Thank you,
>
> Regards,
>
> Vassil Zorev
>