You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by nino martinez wael <ni...@gmail.com> on 2015/04/17 13:08:24 UTC

Scheduler feature

Hi I've started using OSGI and Karaf. I can't seem to find information
about the scheduler feature.

-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
ok thanks

On Fri, Apr 17, 2015 at 1:18 PM, Achim Nierbeck <bc...@googlemail.com> wrote:
> As it's a rather undocumented feature.
> But you'll find some details on the mailing list and/or JIRA for it.
>
> regards, Achim
>
> 2015-04-17 13:08 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> Hi I've started using OSGI and Karaf. I can't seem to find information
>> about the scheduler feature.
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
As it's a rather undocumented feature.
But you'll find some details on the mailing list and/or JIRA for it.

regards, Achim

2015-04-17 13:08 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> Hi I've started using OSGI and Karaf. I can't seem to find information
> about the scheduler feature.
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Okay so this is my best shot, however it's still not working (Karaf 3.0.4):

Job(runnable):
https://paste.apache.org/g4bD
BluePrint:
https://paste.apache.org/15mx
PaxExam:
https://paste.apache.org/5ngn

The service are registered to the Runnable interface. And can be
viewed as such from the webconsole. It just seems as the
runnerlistener never picks it up.

On Wed, Aug 12, 2015 at 2:24 PM, nino martinez wael
<ni...@gmail.com> wrote:
> I think my machine was stuck on some process. However I've reverted to
> 3.0.4 and will try to see if I can get that to work.. Until 4.0.1
> comes out.
>
> On Wed, Aug 12, 2015 at 2:01 PM, nino martinez wael
> <ni...@gmail.com> wrote:
>> I can't even get Karaf 4.0.1 snapshot to boot.. I'll have to go back
>> to 3.0.4 and try with that one instead :(
>>
>> On Wed, Aug 12, 2015 at 12:23 PM, nino martinez wael
>> <ni...@gmail.com> wrote:
>>> Are there some way to list what jobs have been scheduled?
>>>
>>>
>>> On Wed, Aug 12, 2015 at 12:19 PM, nino martinez wael
>>> <ni...@gmail.com> wrote:
>>>> BTW changed to 3.0.4 and bound my job to Runnable, but still does not work..
>>>>
>>>> Anyhow I will switch to 4.0.1 snapshot. And see how it is there.. And
>>>> get back to this thread. With the result.
>>>>
>>>>
>>>>
>>>> On Wed, Aug 12, 2015 at 12:16 PM, Achim Nierbeck
>>>> <bc...@googlemail.com> wrote:
>>>>> Hi,
>>>>>
>>>>> might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
>>>>> repo,
>>>>> cause there was some sort of issue related to K4 and windows.
>>>>>
>>>>> regards, Achim
>>>>>
>>>>> 2015-08-12 12:06 GMT+02:00 nino martinez wael
>>>>> <ni...@gmail.com>:
>>>>>>
>>>>>> But karaf never boots up.. And I never actually hit the line in my test.
>>>>>>
>>>>>> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
>>>>>> <bc...@googlemail.com> wrote:
>>>>>> > That one :-)
>>>>>> > is known and fixed in Karaf 4.0.1 which will be released soonish.
>>>>>> > It won't affect you in any way since it's just a bogus message.
>>>>>> >
>>>>>> > regards, Achim
>>>>>> >
>>>>>> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
>>>>>> > <ni...@gmail.com>:
>>>>>> >>
>>>>>> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>>>>>> >> karaf I get an wierd error:
>>>>>> >>
>>>>>> >> java.io.FileNotFoundException:
>>>>>> >>
>>>>>> >>
>>>>>> >> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>>>>>> >> (The filename, directory name, or volume label syntax is incorrect)
>>>>>> >>
>>>>>> >> Im wondering what "file:\" are doing in my path.. This is on windows..
>>>>>> >>
>>>>>> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>>>>>> >> <bc...@googlemail.com> wrote:
>>>>>> >> > Ah my fault that one is for Karaf 4,
>>>>>> >> > for Karaf 3.0.4 you'll need to register a Runnable class
>>>>>> >> > As can be seen from the activator [1].
>>>>>> >> >
>>>>>> >> > regards, Achim
>>>>>> >> >
>>>>>> >> > [1] -
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>>>>>> >> >
>>>>>> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>>>>>> >> > <ni...@gmail.com>:
>>>>>> >> >>
>>>>>> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>>>>>> >> >> (the job) present?
>>>>>> >> >>
>>>>>> >> >> And thanks for the Karaf 4/exam tip :)
>>>>>> >> >> regards Nino
>>>>>> >> >>
>>>>>> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>>>>>> >> >> <bc...@googlemail.com>
>>>>>> >> >> wrote:
>>>>>> >> >> > Hi,
>>>>>> >> >> >
>>>>>> >> >> > you need to make sure your job is of type
>>>>>> >> >> > org.apache.karaf.scheduler.Job
>>>>>> >> >> > as this is the type the service tracker is looking for.
>>>>>> >> >> > This is the type you need to declare in the blueprint.xml.
>>>>>> >> >> >
>>>>>> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
>>>>>> >> >> > tests
>>>>>> >> >> > of
>>>>>> >> >> > Pax
>>>>>> >> >> > Web.
>>>>>> >> >> > We are using it very successfully. [1]
>>>>>> >> >> >
>>>>>> >> >> > regards, Achim
>>>>>> >> >> >
>>>>>> >> >> > [1] -
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>>>>>> >> >> >
>>>>>> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>>>>>> >> >> > <ni...@gmail.com>:
>>>>>> >> >> >>
>>>>>> >> >> >> Im having a hard time getting this to work, I've tried both with
>>>>>> >> >> >> the
>>>>>> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>>>>>> >> >> >> services) but none of them seems to pickup the jobs. Im using
>>>>>> >> >> >> karaf
>>>>>> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>>>>>> >> >> >>
>>>>>> >> >> >> I've been looking in source files of
>>>>>> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
>>>>>> >> >> >> but
>>>>>> >> >> >> no
>>>>>> >> >> >> tests are available. My bundle does boot up but are never
>>>>>> >> >> >> scheduled.
>>>>>> >> >> >>
>>>>>> >> >> >> My job are here:
>>>>>> >> >> >> https://paste.apache.org/1dQi
>>>>>> >> >> >> Blueprint:
>>>>>> >> >> >> https://paste.apache.org/mmTV
>>>>>> >> >> >> Pax exam test:
>>>>>> >> >> >> https://paste.apache.org/gsaN
>>>>>> >> >> >>
>>>>>> >> >> >> Any pointers are very much apreciated..
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>>>>>> >> >> >> <bc...@googlemail.com> wrote:
>>>>>> >> >> >> > Ok, because of Decanter I did take a look at the current
>>>>>> >> >> >> > scheduler
>>>>>> >> >> >> > embedded
>>>>>> >> >> >> > in Karaf.
>>>>>> >> >> >> > It's much more sophisticated then I previously thought.
>>>>>> >> >> >> >
>>>>>> >> >> >> > First it's already Quarz based, second if you install it via
>>>>>> >> >> >> > the
>>>>>> >> >> >> > scheduler
>>>>>> >> >> >> > feature you have commands to
>>>>>> >> >> >> > 1/ list
>>>>>> >> >> >> > 2/ schedule
>>>>>> >> >> >> > 3/ unschedule
>>>>>> >> >> >> >
>>>>>> >> >> >> > Programmatically one can add a new scheduler via a Service
>>>>>> >> >> >> > (whiteboard-pattern)
>>>>>> >> >> >> >
>>>>>> >> >> >> > regards, Achim
>>>>>> >> >> >> >
>>>>>> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>>>>>> >> >> >> > <bc...@googlemail.com>:
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> yeah, a big +1 on the release :-)
>>>>>> >> >> >> >>
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> regards, Achim
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré
>>>>>> >> >> >> >> <jb...@nanthrax.net>:
>>>>>> >> >> >> >>>
>>>>>> >> >> >> >>> Yup, it would be great ;)
>>>>>> >> >> >> >>>
>>>>>> >> >> >> >>> Regards
>>>>>> >> >> >> >>> JB
>>>>>> >> >> >> >>>
>>>>>> >> >> >> >>>
>>>>>> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
>>>>>> >> >> >> >>>> wrote:
>>>>>> >> >> >> >>>>>
>>>>>> >> >> >> >>>>> By included, I thought about just refering Sling feature
>>>>>> >> >> >> >>>>> XML
>>>>>> >> >> >> >>>>> in
>>>>>> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>>>>>> >> >> >> >>>>> projects
>>>>>> >> >> >> >>>>> like
>>>>>> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>>>>>> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag
>>>>>> >> >> >> >>>>> to
>>>>>> >> >> >> >>>>> Sling
>>>>>> >> >> >> >>>>> feature XML.
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>> Then we only need a release, fine.
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>> Regards,
>>>>>> >> >> >> >>>> O.
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>>> Regards
>>>>>> >> >> >> >>>>> JB
>>>>>> >> >> >> >>>>>
>>>>>> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>>>> >> >> >> >>>>>>
>>>>>> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>>>>>> >> >> >> >>>>>> wrote:
>>>>>> >> >> >> >>>>>>>
>>>>>> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>>>>>> >> >> >> >>>>>>> provide
>>>>>> >> >> >> >>>>>>> sling
>>>>>> >> >> >> >>>>>>> feature repo in Karaf.
>>>>>> >> >> >> >>>>>>
>>>>>> >> >> >> >>>>>>
>>>>>> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
>>>>>> >> >> >> >>>>>> Copying
>>>>>> >> >> >> >>>>>> the
>>>>>> >> >> >> >>>>>> file,
>>>>>> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling
>>>>>> >> >> >> >>>>>> to
>>>>>> >> >> >> >>>>>> Karaf...
>>>>>> >> >> >> >>>>>> what
>>>>>> >> >> >> >>>>>> else?
>>>>>> >> >> >> >>>>>>
>>>>>> >> >> >> >>>>>> O.
>>>>>> >> >> >> >>>>>>
>>>>>> >> >> >> >>>>>>> Regards
>>>>>> >> >> >> >>>>>>> JB
>>>>>> >> >> >> >>>>>>>
>>>>>> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>>> >> >> >> >>>>>>>>
>>>>>> >> >> >> >>>>>>>> nice,
>>>>>> >> >> >> >>>>>>>>
>>>>>> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
>>>>>> >> >> >> >>>>>>>> Decanter?
>>>>>> >> >> >> >>>>>>>>
>>>>>> >> >> >> >>>>>>>> regards, Achim
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>>
>>>>>> >> >> >> >>>
>>>>>> >> >> >> >>> --
>>>>>> >> >> >> >>> Jean-Baptiste Onofré
>>>>>> >> >> >> >>> jbonofre@apache.org
>>>>>> >> >> >> >>> http://blog.nanthrax.net
>>>>>> >> >> >> >>> Talend - http://www.talend.com
>>>>>> >> >> >> >>
>>>>>> >> >> >> >>
>>>>>> >> >> >> >>
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> --
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> Apache Member
>>>>>> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> >> >> >> >> Committer
>>>>>> >> >> >> >> &
>>>>>> >> >> >> >> Project Lead
>>>>>> >> >> >> >> blog <http://notizblog.nierbeck.de/>
>>>>>> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>> >> >> >> >>
>>>>>> >> >> >> >> Software Architect / Project Manager / Scrum Master
>>>>>> >> >> >> >>
>>>>>> >> >> >> >
>>>>>> >> >> >> >
>>>>>> >> >> >> >
>>>>>> >> >> >> > --
>>>>>> >> >> >> >
>>>>>> >> >> >> > Apache Member
>>>>>> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> >> >> >> > Committer
>>>>>> >> >> >> > &
>>>>>> >> >> >> > Project Lead
>>>>>> >> >> >> > blog <http://notizblog.nierbeck.de/>
>>>>>> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>> >> >> >> >
>>>>>> >> >> >> > Software Architect / Project Manager / Scrum Master
>>>>>> >> >> >> >
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >>
>>>>>> >> >> >> --
>>>>>> >> >> >> Best regards / Med venlig hilsen
>>>>>> >> >> >> Nino Martinez
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> >
>>>>>> >> >> > --
>>>>>> >> >> >
>>>>>> >> >> > Apache Member
>>>>>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> >> >> > Committer
>>>>>> >> >> > &
>>>>>> >> >> > Project Lead
>>>>>> >> >> > blog <http://notizblog.nierbeck.de/>
>>>>>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>> >> >> >
>>>>>> >> >> > Software Architect / Project Manager / Scrum Master
>>>>>> >> >> >
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >>
>>>>>> >> >> --
>>>>>> >> >> Best regards / Med venlig hilsen
>>>>>> >> >> Nino Martinez
>>>>>> >> >
>>>>>> >> >
>>>>>> >> >
>>>>>> >> >
>>>>>> >> > --
>>>>>> >> >
>>>>>> >> > Apache Member
>>>>>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>>> >> > Committer
>>>>>> >> > &
>>>>>> >> > Project Lead
>>>>>> >> > blog <http://notizblog.nierbeck.de/>
>>>>>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>> >> >
>>>>>> >> > Software Architect / Project Manager / Scrum Master
>>>>>> >> >
>>>>>> >>
>>>>>> >>
>>>>>> >>
>>>>>> >> --
>>>>>> >> Best regards / Med venlig hilsen
>>>>>> >> Nino Martinez
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > --
>>>>>> >
>>>>>> > Apache Member
>>>>>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>>>>> > &
>>>>>> > Project Lead
>>>>>> > blog <http://notizblog.nierbeck.de/>
>>>>>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>> >
>>>>>> > Software Architect / Project Manager / Scrum Master
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best regards / Med venlig hilsen
>>>>>> Nino Martinez
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>>
>>>>> Apache Member
>>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>>>>> Project Lead
>>>>> blog <http://notizblog.nierbeck.de/>
>>>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>>
>>>>> Software Architect / Project Manager / Scrum Master
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
I think my machine was stuck on some process. However I've reverted to
3.0.4 and will try to see if I can get that to work.. Until 4.0.1
comes out.

On Wed, Aug 12, 2015 at 2:01 PM, nino martinez wael
<ni...@gmail.com> wrote:
> I can't even get Karaf 4.0.1 snapshot to boot.. I'll have to go back
> to 3.0.4 and try with that one instead :(
>
> On Wed, Aug 12, 2015 at 12:23 PM, nino martinez wael
> <ni...@gmail.com> wrote:
>> Are there some way to list what jobs have been scheduled?
>>
>>
>> On Wed, Aug 12, 2015 at 12:19 PM, nino martinez wael
>> <ni...@gmail.com> wrote:
>>> BTW changed to 3.0.4 and bound my job to Runnable, but still does not work..
>>>
>>> Anyhow I will switch to 4.0.1 snapshot. And see how it is there.. And
>>> get back to this thread. With the result.
>>>
>>>
>>>
>>> On Wed, Aug 12, 2015 at 12:16 PM, Achim Nierbeck
>>> <bc...@googlemail.com> wrote:
>>>> Hi,
>>>>
>>>> might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
>>>> repo,
>>>> cause there was some sort of issue related to K4 and windows.
>>>>
>>>> regards, Achim
>>>>
>>>> 2015-08-12 12:06 GMT+02:00 nino martinez wael
>>>> <ni...@gmail.com>:
>>>>>
>>>>> But karaf never boots up.. And I never actually hit the line in my test.
>>>>>
>>>>> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
>>>>> <bc...@googlemail.com> wrote:
>>>>> > That one :-)
>>>>> > is known and fixed in Karaf 4.0.1 which will be released soonish.
>>>>> > It won't affect you in any way since it's just a bogus message.
>>>>> >
>>>>> > regards, Achim
>>>>> >
>>>>> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
>>>>> > <ni...@gmail.com>:
>>>>> >>
>>>>> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>>>>> >> karaf I get an wierd error:
>>>>> >>
>>>>> >> java.io.FileNotFoundException:
>>>>> >>
>>>>> >>
>>>>> >> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>>>>> >> (The filename, directory name, or volume label syntax is incorrect)
>>>>> >>
>>>>> >> Im wondering what "file:\" are doing in my path.. This is on windows..
>>>>> >>
>>>>> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>>>>> >> <bc...@googlemail.com> wrote:
>>>>> >> > Ah my fault that one is for Karaf 4,
>>>>> >> > for Karaf 3.0.4 you'll need to register a Runnable class
>>>>> >> > As can be seen from the activator [1].
>>>>> >> >
>>>>> >> > regards, Achim
>>>>> >> >
>>>>> >> > [1] -
>>>>> >> >
>>>>> >> >
>>>>> >> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>>>>> >> >
>>>>> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>>>>> >> > <ni...@gmail.com>:
>>>>> >> >>
>>>>> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
>>>>> >> >>
>>>>> >> >>
>>>>> >> >>
>>>>> >> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>>>>> >> >> (the job) present?
>>>>> >> >>
>>>>> >> >> And thanks for the Karaf 4/exam tip :)
>>>>> >> >> regards Nino
>>>>> >> >>
>>>>> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>>>>> >> >> <bc...@googlemail.com>
>>>>> >> >> wrote:
>>>>> >> >> > Hi,
>>>>> >> >> >
>>>>> >> >> > you need to make sure your job is of type
>>>>> >> >> > org.apache.karaf.scheduler.Job
>>>>> >> >> > as this is the type the service tracker is looking for.
>>>>> >> >> > This is the type you need to declare in the blueprint.xml.
>>>>> >> >> >
>>>>> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
>>>>> >> >> > tests
>>>>> >> >> > of
>>>>> >> >> > Pax
>>>>> >> >> > Web.
>>>>> >> >> > We are using it very successfully. [1]
>>>>> >> >> >
>>>>> >> >> > regards, Achim
>>>>> >> >> >
>>>>> >> >> > [1] -
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>>>>> >> >> >
>>>>> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>>>>> >> >> > <ni...@gmail.com>:
>>>>> >> >> >>
>>>>> >> >> >> Im having a hard time getting this to work, I've tried both with
>>>>> >> >> >> the
>>>>> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>>>>> >> >> >> services) but none of them seems to pickup the jobs. Im using
>>>>> >> >> >> karaf
>>>>> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>>>>> >> >> >>
>>>>> >> >> >> I've been looking in source files of
>>>>> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
>>>>> >> >> >> but
>>>>> >> >> >> no
>>>>> >> >> >> tests are available. My bundle does boot up but are never
>>>>> >> >> >> scheduled.
>>>>> >> >> >>
>>>>> >> >> >> My job are here:
>>>>> >> >> >> https://paste.apache.org/1dQi
>>>>> >> >> >> Blueprint:
>>>>> >> >> >> https://paste.apache.org/mmTV
>>>>> >> >> >> Pax exam test:
>>>>> >> >> >> https://paste.apache.org/gsaN
>>>>> >> >> >>
>>>>> >> >> >> Any pointers are very much apreciated..
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>>>>> >> >> >> <bc...@googlemail.com> wrote:
>>>>> >> >> >> > Ok, because of Decanter I did take a look at the current
>>>>> >> >> >> > scheduler
>>>>> >> >> >> > embedded
>>>>> >> >> >> > in Karaf.
>>>>> >> >> >> > It's much more sophisticated then I previously thought.
>>>>> >> >> >> >
>>>>> >> >> >> > First it's already Quarz based, second if you install it via
>>>>> >> >> >> > the
>>>>> >> >> >> > scheduler
>>>>> >> >> >> > feature you have commands to
>>>>> >> >> >> > 1/ list
>>>>> >> >> >> > 2/ schedule
>>>>> >> >> >> > 3/ unschedule
>>>>> >> >> >> >
>>>>> >> >> >> > Programmatically one can add a new scheduler via a Service
>>>>> >> >> >> > (whiteboard-pattern)
>>>>> >> >> >> >
>>>>> >> >> >> > regards, Achim
>>>>> >> >> >> >
>>>>> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>>>>> >> >> >> > <bc...@googlemail.com>:
>>>>> >> >> >> >>
>>>>> >> >> >> >> yeah, a big +1 on the release :-)
>>>>> >> >> >> >>
>>>>> >> >> >> >>
>>>>> >> >> >> >> regards, Achim
>>>>> >> >> >> >>
>>>>> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré
>>>>> >> >> >> >> <jb...@nanthrax.net>:
>>>>> >> >> >> >>>
>>>>> >> >> >> >>> Yup, it would be great ;)
>>>>> >> >> >> >>>
>>>>> >> >> >> >>> Regards
>>>>> >> >> >> >>> JB
>>>>> >> >> >> >>>
>>>>> >> >> >> >>>
>>>>> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
>>>>> >> >> >> >>>> wrote:
>>>>> >> >> >> >>>>>
>>>>> >> >> >> >>>>> By included, I thought about just refering Sling feature
>>>>> >> >> >> >>>>> XML
>>>>> >> >> >> >>>>> in
>>>>> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>>>>> >> >> >> >>>>> projects
>>>>> >> >> >> >>>>> like
>>>>> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>>>>> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag
>>>>> >> >> >> >>>>> to
>>>>> >> >> >> >>>>> Sling
>>>>> >> >> >> >>>>> feature XML.
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>> Then we only need a release, fine.
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>> Regards,
>>>>> >> >> >> >>>> O.
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>>> Regards
>>>>> >> >> >> >>>>> JB
>>>>> >> >> >> >>>>>
>>>>> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>>> >> >> >> >>>>>>
>>>>> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>>>>> >> >> >> >>>>>> wrote:
>>>>> >> >> >> >>>>>>>
>>>>> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>>>>> >> >> >> >>>>>>> provide
>>>>> >> >> >> >>>>>>> sling
>>>>> >> >> >> >>>>>>> feature repo in Karaf.
>>>>> >> >> >> >>>>>>
>>>>> >> >> >> >>>>>>
>>>>> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
>>>>> >> >> >> >>>>>> Copying
>>>>> >> >> >> >>>>>> the
>>>>> >> >> >> >>>>>> file,
>>>>> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling
>>>>> >> >> >> >>>>>> to
>>>>> >> >> >> >>>>>> Karaf...
>>>>> >> >> >> >>>>>> what
>>>>> >> >> >> >>>>>> else?
>>>>> >> >> >> >>>>>>
>>>>> >> >> >> >>>>>> O.
>>>>> >> >> >> >>>>>>
>>>>> >> >> >> >>>>>>> Regards
>>>>> >> >> >> >>>>>>> JB
>>>>> >> >> >> >>>>>>>
>>>>> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>> >> >> >> >>>>>>>>
>>>>> >> >> >> >>>>>>>> nice,
>>>>> >> >> >> >>>>>>>>
>>>>> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
>>>>> >> >> >> >>>>>>>> Decanter?
>>>>> >> >> >> >>>>>>>>
>>>>> >> >> >> >>>>>>>> regards, Achim
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>>
>>>>> >> >> >> >>>
>>>>> >> >> >> >>> --
>>>>> >> >> >> >>> Jean-Baptiste Onofré
>>>>> >> >> >> >>> jbonofre@apache.org
>>>>> >> >> >> >>> http://blog.nanthrax.net
>>>>> >> >> >> >>> Talend - http://www.talend.com
>>>>> >> >> >> >>
>>>>> >> >> >> >>
>>>>> >> >> >> >>
>>>>> >> >> >> >>
>>>>> >> >> >> >> --
>>>>> >> >> >> >>
>>>>> >> >> >> >> Apache Member
>>>>> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> >> >> >> >> Committer
>>>>> >> >> >> >> &
>>>>> >> >> >> >> Project Lead
>>>>> >> >> >> >> blog <http://notizblog.nierbeck.de/>
>>>>> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>> >> >> >> >>
>>>>> >> >> >> >> Software Architect / Project Manager / Scrum Master
>>>>> >> >> >> >>
>>>>> >> >> >> >
>>>>> >> >> >> >
>>>>> >> >> >> >
>>>>> >> >> >> > --
>>>>> >> >> >> >
>>>>> >> >> >> > Apache Member
>>>>> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> >> >> >> > Committer
>>>>> >> >> >> > &
>>>>> >> >> >> > Project Lead
>>>>> >> >> >> > blog <http://notizblog.nierbeck.de/>
>>>>> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>> >> >> >> >
>>>>> >> >> >> > Software Architect / Project Manager / Scrum Master
>>>>> >> >> >> >
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >>
>>>>> >> >> >> --
>>>>> >> >> >> Best regards / Med venlig hilsen
>>>>> >> >> >> Nino Martinez
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> >
>>>>> >> >> > --
>>>>> >> >> >
>>>>> >> >> > Apache Member
>>>>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> >> >> > Committer
>>>>> >> >> > &
>>>>> >> >> > Project Lead
>>>>> >> >> > blog <http://notizblog.nierbeck.de/>
>>>>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>> >> >> >
>>>>> >> >> > Software Architect / Project Manager / Scrum Master
>>>>> >> >> >
>>>>> >> >>
>>>>> >> >>
>>>>> >> >>
>>>>> >> >> --
>>>>> >> >> Best regards / Med venlig hilsen
>>>>> >> >> Nino Martinez
>>>>> >> >
>>>>> >> >
>>>>> >> >
>>>>> >> >
>>>>> >> > --
>>>>> >> >
>>>>> >> > Apache Member
>>>>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>> >> > Committer
>>>>> >> > &
>>>>> >> > Project Lead
>>>>> >> > blog <http://notizblog.nierbeck.de/>
>>>>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>> >> >
>>>>> >> > Software Architect / Project Manager / Scrum Master
>>>>> >> >
>>>>> >>
>>>>> >>
>>>>> >>
>>>>> >> --
>>>>> >> Best regards / Med venlig hilsen
>>>>> >> Nino Martinez
>>>>> >
>>>>> >
>>>>> >
>>>>> >
>>>>> > --
>>>>> >
>>>>> > Apache Member
>>>>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>>>> > &
>>>>> > Project Lead
>>>>> > blog <http://notizblog.nierbeck.de/>
>>>>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>> >
>>>>> > Software Architect / Project Manager / Scrum Master
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best regards / Med venlig hilsen
>>>>> Nino Martinez
>>>>
>>>>
>>>>
>>>>
>>>> --
>>>>
>>>> Apache Member
>>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>>>> Project Lead
>>>> blog <http://notizblog.nierbeck.de/>
>>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>
>>>> Software Architect / Project Manager / Scrum Master
>>>>
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
I can't even get Karaf 4.0.1 snapshot to boot.. I'll have to go back
to 3.0.4 and try with that one instead :(

On Wed, Aug 12, 2015 at 12:23 PM, nino martinez wael
<ni...@gmail.com> wrote:
> Are there some way to list what jobs have been scheduled?
>
>
> On Wed, Aug 12, 2015 at 12:19 PM, nino martinez wael
> <ni...@gmail.com> wrote:
>> BTW changed to 3.0.4 and bound my job to Runnable, but still does not work..
>>
>> Anyhow I will switch to 4.0.1 snapshot. And see how it is there.. And
>> get back to this thread. With the result.
>>
>>
>>
>> On Wed, Aug 12, 2015 at 12:16 PM, Achim Nierbeck
>> <bc...@googlemail.com> wrote:
>>> Hi,
>>>
>>> might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
>>> repo,
>>> cause there was some sort of issue related to K4 and windows.
>>>
>>> regards, Achim
>>>
>>> 2015-08-12 12:06 GMT+02:00 nino martinez wael
>>> <ni...@gmail.com>:
>>>>
>>>> But karaf never boots up.. And I never actually hit the line in my test.
>>>>
>>>> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
>>>> <bc...@googlemail.com> wrote:
>>>> > That one :-)
>>>> > is known and fixed in Karaf 4.0.1 which will be released soonish.
>>>> > It won't affect you in any way since it's just a bogus message.
>>>> >
>>>> > regards, Achim
>>>> >
>>>> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
>>>> > <ni...@gmail.com>:
>>>> >>
>>>> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>>>> >> karaf I get an wierd error:
>>>> >>
>>>> >> java.io.FileNotFoundException:
>>>> >>
>>>> >>
>>>> >> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>>>> >> (The filename, directory name, or volume label syntax is incorrect)
>>>> >>
>>>> >> Im wondering what "file:\" are doing in my path.. This is on windows..
>>>> >>
>>>> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>>>> >> <bc...@googlemail.com> wrote:
>>>> >> > Ah my fault that one is for Karaf 4,
>>>> >> > for Karaf 3.0.4 you'll need to register a Runnable class
>>>> >> > As can be seen from the activator [1].
>>>> >> >
>>>> >> > regards, Achim
>>>> >> >
>>>> >> > [1] -
>>>> >> >
>>>> >> >
>>>> >> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>>>> >> >
>>>> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>>>> >> > <ni...@gmail.com>:
>>>> >> >>
>>>> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>>>> >> >> (the job) present?
>>>> >> >>
>>>> >> >> And thanks for the Karaf 4/exam tip :)
>>>> >> >> regards Nino
>>>> >> >>
>>>> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>>>> >> >> <bc...@googlemail.com>
>>>> >> >> wrote:
>>>> >> >> > Hi,
>>>> >> >> >
>>>> >> >> > you need to make sure your job is of type
>>>> >> >> > org.apache.karaf.scheduler.Job
>>>> >> >> > as this is the type the service tracker is looking for.
>>>> >> >> > This is the type you need to declare in the blueprint.xml.
>>>> >> >> >
>>>> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
>>>> >> >> > tests
>>>> >> >> > of
>>>> >> >> > Pax
>>>> >> >> > Web.
>>>> >> >> > We are using it very successfully. [1]
>>>> >> >> >
>>>> >> >> > regards, Achim
>>>> >> >> >
>>>> >> >> > [1] -
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>>>> >> >> >
>>>> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>>>> >> >> > <ni...@gmail.com>:
>>>> >> >> >>
>>>> >> >> >> Im having a hard time getting this to work, I've tried both with
>>>> >> >> >> the
>>>> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>>>> >> >> >> services) but none of them seems to pickup the jobs. Im using
>>>> >> >> >> karaf
>>>> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>>>> >> >> >>
>>>> >> >> >> I've been looking in source files of
>>>> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
>>>> >> >> >> but
>>>> >> >> >> no
>>>> >> >> >> tests are available. My bundle does boot up but are never
>>>> >> >> >> scheduled.
>>>> >> >> >>
>>>> >> >> >> My job are here:
>>>> >> >> >> https://paste.apache.org/1dQi
>>>> >> >> >> Blueprint:
>>>> >> >> >> https://paste.apache.org/mmTV
>>>> >> >> >> Pax exam test:
>>>> >> >> >> https://paste.apache.org/gsaN
>>>> >> >> >>
>>>> >> >> >> Any pointers are very much apreciated..
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>>>> >> >> >> <bc...@googlemail.com> wrote:
>>>> >> >> >> > Ok, because of Decanter I did take a look at the current
>>>> >> >> >> > scheduler
>>>> >> >> >> > embedded
>>>> >> >> >> > in Karaf.
>>>> >> >> >> > It's much more sophisticated then I previously thought.
>>>> >> >> >> >
>>>> >> >> >> > First it's already Quarz based, second if you install it via
>>>> >> >> >> > the
>>>> >> >> >> > scheduler
>>>> >> >> >> > feature you have commands to
>>>> >> >> >> > 1/ list
>>>> >> >> >> > 2/ schedule
>>>> >> >> >> > 3/ unschedule
>>>> >> >> >> >
>>>> >> >> >> > Programmatically one can add a new scheduler via a Service
>>>> >> >> >> > (whiteboard-pattern)
>>>> >> >> >> >
>>>> >> >> >> > regards, Achim
>>>> >> >> >> >
>>>> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>>>> >> >> >> > <bc...@googlemail.com>:
>>>> >> >> >> >>
>>>> >> >> >> >> yeah, a big +1 on the release :-)
>>>> >> >> >> >>
>>>> >> >> >> >>
>>>> >> >> >> >> regards, Achim
>>>> >> >> >> >>
>>>> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré
>>>> >> >> >> >> <jb...@nanthrax.net>:
>>>> >> >> >> >>>
>>>> >> >> >> >>> Yup, it would be great ;)
>>>> >> >> >> >>>
>>>> >> >> >> >>> Regards
>>>> >> >> >> >>> JB
>>>> >> >> >> >>>
>>>> >> >> >> >>>
>>>> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>>> >> >> >> >>>>
>>>> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
>>>> >> >> >> >>>> wrote:
>>>> >> >> >> >>>>>
>>>> >> >> >> >>>>> By included, I thought about just refering Sling feature
>>>> >> >> >> >>>>> XML
>>>> >> >> >> >>>>> in
>>>> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>>>> >> >> >> >>>>> projects
>>>> >> >> >> >>>>> like
>>>> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>>>> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag
>>>> >> >> >> >>>>> to
>>>> >> >> >> >>>>> Sling
>>>> >> >> >> >>>>> feature XML.
>>>> >> >> >> >>>>
>>>> >> >> >> >>>>
>>>> >> >> >> >>>> Then we only need a release, fine.
>>>> >> >> >> >>>>
>>>> >> >> >> >>>> Regards,
>>>> >> >> >> >>>> O.
>>>> >> >> >> >>>>
>>>> >> >> >> >>>>> Regards
>>>> >> >> >> >>>>> JB
>>>> >> >> >> >>>>>
>>>> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>> >> >> >> >>>>>>
>>>> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>>>> >> >> >> >>>>>> wrote:
>>>> >> >> >> >>>>>>>
>>>> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>>>> >> >> >> >>>>>>> provide
>>>> >> >> >> >>>>>>> sling
>>>> >> >> >> >>>>>>> feature repo in Karaf.
>>>> >> >> >> >>>>>>
>>>> >> >> >> >>>>>>
>>>> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
>>>> >> >> >> >>>>>> Copying
>>>> >> >> >> >>>>>> the
>>>> >> >> >> >>>>>> file,
>>>> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling
>>>> >> >> >> >>>>>> to
>>>> >> >> >> >>>>>> Karaf...
>>>> >> >> >> >>>>>> what
>>>> >> >> >> >>>>>> else?
>>>> >> >> >> >>>>>>
>>>> >> >> >> >>>>>> O.
>>>> >> >> >> >>>>>>
>>>> >> >> >> >>>>>>> Regards
>>>> >> >> >> >>>>>>> JB
>>>> >> >> >> >>>>>>>
>>>> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>> >> >> >> >>>>>>>>
>>>> >> >> >> >>>>>>>> nice,
>>>> >> >> >> >>>>>>>>
>>>> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
>>>> >> >> >> >>>>>>>> Decanter?
>>>> >> >> >> >>>>>>>>
>>>> >> >> >> >>>>>>>> regards, Achim
>>>> >> >> >> >>>>
>>>> >> >> >> >>>>
>>>> >> >> >> >>>
>>>> >> >> >> >>> --
>>>> >> >> >> >>> Jean-Baptiste Onofré
>>>> >> >> >> >>> jbonofre@apache.org
>>>> >> >> >> >>> http://blog.nanthrax.net
>>>> >> >> >> >>> Talend - http://www.talend.com
>>>> >> >> >> >>
>>>> >> >> >> >>
>>>> >> >> >> >>
>>>> >> >> >> >>
>>>> >> >> >> >> --
>>>> >> >> >> >>
>>>> >> >> >> >> Apache Member
>>>> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> >> >> >> >> Committer
>>>> >> >> >> >> &
>>>> >> >> >> >> Project Lead
>>>> >> >> >> >> blog <http://notizblog.nierbeck.de/>
>>>> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>> >> >> >> >>
>>>> >> >> >> >> Software Architect / Project Manager / Scrum Master
>>>> >> >> >> >>
>>>> >> >> >> >
>>>> >> >> >> >
>>>> >> >> >> >
>>>> >> >> >> > --
>>>> >> >> >> >
>>>> >> >> >> > Apache Member
>>>> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> >> >> >> > Committer
>>>> >> >> >> > &
>>>> >> >> >> > Project Lead
>>>> >> >> >> > blog <http://notizblog.nierbeck.de/>
>>>> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>> >> >> >> >
>>>> >> >> >> > Software Architect / Project Manager / Scrum Master
>>>> >> >> >> >
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >>
>>>> >> >> >> --
>>>> >> >> >> Best regards / Med venlig hilsen
>>>> >> >> >> Nino Martinez
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> >
>>>> >> >> > --
>>>> >> >> >
>>>> >> >> > Apache Member
>>>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> >> >> > Committer
>>>> >> >> > &
>>>> >> >> > Project Lead
>>>> >> >> > blog <http://notizblog.nierbeck.de/>
>>>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>> >> >> >
>>>> >> >> > Software Architect / Project Manager / Scrum Master
>>>> >> >> >
>>>> >> >>
>>>> >> >>
>>>> >> >>
>>>> >> >> --
>>>> >> >> Best regards / Med venlig hilsen
>>>> >> >> Nino Martinez
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> >
>>>> >> > --
>>>> >> >
>>>> >> > Apache Member
>>>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>> >> > Committer
>>>> >> > &
>>>> >> > Project Lead
>>>> >> > blog <http://notizblog.nierbeck.de/>
>>>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>> >> >
>>>> >> > Software Architect / Project Manager / Scrum Master
>>>> >> >
>>>> >>
>>>> >>
>>>> >>
>>>> >> --
>>>> >> Best regards / Med venlig hilsen
>>>> >> Nino Martinez
>>>> >
>>>> >
>>>> >
>>>> >
>>>> > --
>>>> >
>>>> > Apache Member
>>>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>>> > &
>>>> > Project Lead
>>>> > blog <http://notizblog.nierbeck.de/>
>>>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>> >
>>>> > Software Architect / Project Manager / Scrum Master
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Best regards / Med venlig hilsen
>>>> Nino Martinez
>>>
>>>
>>>
>>>
>>> --
>>>
>>> Apache Member
>>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>>> Project Lead
>>> blog <http://notizblog.nierbeck.de/>
>>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>
>>> Software Architect / Project Manager / Scrum Master
>>>
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Are there some way to list what jobs have been scheduled?


On Wed, Aug 12, 2015 at 12:19 PM, nino martinez wael
<ni...@gmail.com> wrote:
> BTW changed to 3.0.4 and bound my job to Runnable, but still does not work..
>
> Anyhow I will switch to 4.0.1 snapshot. And see how it is there.. And
> get back to this thread. With the result.
>
>
>
> On Wed, Aug 12, 2015 at 12:16 PM, Achim Nierbeck
> <bc...@googlemail.com> wrote:
>> Hi,
>>
>> might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
>> repo,
>> cause there was some sort of issue related to K4 and windows.
>>
>> regards, Achim
>>
>> 2015-08-12 12:06 GMT+02:00 nino martinez wael
>> <ni...@gmail.com>:
>>>
>>> But karaf never boots up.. And I never actually hit the line in my test.
>>>
>>> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
>>> <bc...@googlemail.com> wrote:
>>> > That one :-)
>>> > is known and fixed in Karaf 4.0.1 which will be released soonish.
>>> > It won't affect you in any way since it's just a bogus message.
>>> >
>>> > regards, Achim
>>> >
>>> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
>>> > <ni...@gmail.com>:
>>> >>
>>> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>>> >> karaf I get an wierd error:
>>> >>
>>> >> java.io.FileNotFoundException:
>>> >>
>>> >>
>>> >> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>>> >> (The filename, directory name, or volume label syntax is incorrect)
>>> >>
>>> >> Im wondering what "file:\" are doing in my path.. This is on windows..
>>> >>
>>> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>>> >> <bc...@googlemail.com> wrote:
>>> >> > Ah my fault that one is for Karaf 4,
>>> >> > for Karaf 3.0.4 you'll need to register a Runnable class
>>> >> > As can be seen from the activator [1].
>>> >> >
>>> >> > regards, Achim
>>> >> >
>>> >> > [1] -
>>> >> >
>>> >> >
>>> >> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>>> >> >
>>> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>>> >> > <ni...@gmail.com>:
>>> >> >>
>>> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>>> >> >> (the job) present?
>>> >> >>
>>> >> >> And thanks for the Karaf 4/exam tip :)
>>> >> >> regards Nino
>>> >> >>
>>> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>>> >> >> <bc...@googlemail.com>
>>> >> >> wrote:
>>> >> >> > Hi,
>>> >> >> >
>>> >> >> > you need to make sure your job is of type
>>> >> >> > org.apache.karaf.scheduler.Job
>>> >> >> > as this is the type the service tracker is looking for.
>>> >> >> > This is the type you need to declare in the blueprint.xml.
>>> >> >> >
>>> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
>>> >> >> > tests
>>> >> >> > of
>>> >> >> > Pax
>>> >> >> > Web.
>>> >> >> > We are using it very successfully. [1]
>>> >> >> >
>>> >> >> > regards, Achim
>>> >> >> >
>>> >> >> > [1] -
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>>> >> >> >
>>> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>>> >> >> > <ni...@gmail.com>:
>>> >> >> >>
>>> >> >> >> Im having a hard time getting this to work, I've tried both with
>>> >> >> >> the
>>> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>>> >> >> >> services) but none of them seems to pickup the jobs. Im using
>>> >> >> >> karaf
>>> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>>> >> >> >>
>>> >> >> >> I've been looking in source files of
>>> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
>>> >> >> >> but
>>> >> >> >> no
>>> >> >> >> tests are available. My bundle does boot up but are never
>>> >> >> >> scheduled.
>>> >> >> >>
>>> >> >> >> My job are here:
>>> >> >> >> https://paste.apache.org/1dQi
>>> >> >> >> Blueprint:
>>> >> >> >> https://paste.apache.org/mmTV
>>> >> >> >> Pax exam test:
>>> >> >> >> https://paste.apache.org/gsaN
>>> >> >> >>
>>> >> >> >> Any pointers are very much apreciated..
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>>> >> >> >> <bc...@googlemail.com> wrote:
>>> >> >> >> > Ok, because of Decanter I did take a look at the current
>>> >> >> >> > scheduler
>>> >> >> >> > embedded
>>> >> >> >> > in Karaf.
>>> >> >> >> > It's much more sophisticated then I previously thought.
>>> >> >> >> >
>>> >> >> >> > First it's already Quarz based, second if you install it via
>>> >> >> >> > the
>>> >> >> >> > scheduler
>>> >> >> >> > feature you have commands to
>>> >> >> >> > 1/ list
>>> >> >> >> > 2/ schedule
>>> >> >> >> > 3/ unschedule
>>> >> >> >> >
>>> >> >> >> > Programmatically one can add a new scheduler via a Service
>>> >> >> >> > (whiteboard-pattern)
>>> >> >> >> >
>>> >> >> >> > regards, Achim
>>> >> >> >> >
>>> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>>> >> >> >> > <bc...@googlemail.com>:
>>> >> >> >> >>
>>> >> >> >> >> yeah, a big +1 on the release :-)
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> regards, Achim
>>> >> >> >> >>
>>> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré
>>> >> >> >> >> <jb...@nanthrax.net>:
>>> >> >> >> >>>
>>> >> >> >> >>> Yup, it would be great ;)
>>> >> >> >> >>>
>>> >> >> >> >>> Regards
>>> >> >> >> >>> JB
>>> >> >> >> >>>
>>> >> >> >> >>>
>>> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>> >> >> >> >>>>
>>> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
>>> >> >> >> >>>> wrote:
>>> >> >> >> >>>>>
>>> >> >> >> >>>>> By included, I thought about just refering Sling feature
>>> >> >> >> >>>>> XML
>>> >> >> >> >>>>> in
>>> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>>> >> >> >> >>>>> projects
>>> >> >> >> >>>>> like
>>> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>>> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag
>>> >> >> >> >>>>> to
>>> >> >> >> >>>>> Sling
>>> >> >> >> >>>>> feature XML.
>>> >> >> >> >>>>
>>> >> >> >> >>>>
>>> >> >> >> >>>> Then we only need a release, fine.
>>> >> >> >> >>>>
>>> >> >> >> >>>> Regards,
>>> >> >> >> >>>> O.
>>> >> >> >> >>>>
>>> >> >> >> >>>>> Regards
>>> >> >> >> >>>>> JB
>>> >> >> >> >>>>>
>>> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>> >> >> >> >>>>>>
>>> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>>> >> >> >> >>>>>> wrote:
>>> >> >> >> >>>>>>>
>>> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>>> >> >> >> >>>>>>> provide
>>> >> >> >> >>>>>>> sling
>>> >> >> >> >>>>>>> feature repo in Karaf.
>>> >> >> >> >>>>>>
>>> >> >> >> >>>>>>
>>> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
>>> >> >> >> >>>>>> Copying
>>> >> >> >> >>>>>> the
>>> >> >> >> >>>>>> file,
>>> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling
>>> >> >> >> >>>>>> to
>>> >> >> >> >>>>>> Karaf...
>>> >> >> >> >>>>>> what
>>> >> >> >> >>>>>> else?
>>> >> >> >> >>>>>>
>>> >> >> >> >>>>>> O.
>>> >> >> >> >>>>>>
>>> >> >> >> >>>>>>> Regards
>>> >> >> >> >>>>>>> JB
>>> >> >> >> >>>>>>>
>>> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>> >> >> >> >>>>>>>>
>>> >> >> >> >>>>>>>> nice,
>>> >> >> >> >>>>>>>>
>>> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
>>> >> >> >> >>>>>>>> Decanter?
>>> >> >> >> >>>>>>>>
>>> >> >> >> >>>>>>>> regards, Achim
>>> >> >> >> >>>>
>>> >> >> >> >>>>
>>> >> >> >> >>>
>>> >> >> >> >>> --
>>> >> >> >> >>> Jean-Baptiste Onofré
>>> >> >> >> >>> jbonofre@apache.org
>>> >> >> >> >>> http://blog.nanthrax.net
>>> >> >> >> >>> Talend - http://www.talend.com
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >>
>>> >> >> >> >> --
>>> >> >> >> >>
>>> >> >> >> >> Apache Member
>>> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> >> >> >> >> Committer
>>> >> >> >> >> &
>>> >> >> >> >> Project Lead
>>> >> >> >> >> blog <http://notizblog.nierbeck.de/>
>>> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>> >> >> >> >>
>>> >> >> >> >> Software Architect / Project Manager / Scrum Master
>>> >> >> >> >>
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >> >
>>> >> >> >> > --
>>> >> >> >> >
>>> >> >> >> > Apache Member
>>> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> >> >> >> > Committer
>>> >> >> >> > &
>>> >> >> >> > Project Lead
>>> >> >> >> > blog <http://notizblog.nierbeck.de/>
>>> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>> >> >> >> >
>>> >> >> >> > Software Architect / Project Manager / Scrum Master
>>> >> >> >> >
>>> >> >> >>
>>> >> >> >>
>>> >> >> >>
>>> >> >> >> --
>>> >> >> >> Best regards / Med venlig hilsen
>>> >> >> >> Nino Martinez
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> >
>>> >> >> > --
>>> >> >> >
>>> >> >> > Apache Member
>>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> >> >> > Committer
>>> >> >> > &
>>> >> >> > Project Lead
>>> >> >> > blog <http://notizblog.nierbeck.de/>
>>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>> >> >> >
>>> >> >> > Software Architect / Project Manager / Scrum Master
>>> >> >> >
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >> --
>>> >> >> Best regards / Med venlig hilsen
>>> >> >> Nino Martinez
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >> > --
>>> >> >
>>> >> > Apache Member
>>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>> >> > Committer
>>> >> > &
>>> >> > Project Lead
>>> >> > blog <http://notizblog.nierbeck.de/>
>>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>> >> >
>>> >> > Software Architect / Project Manager / Scrum Master
>>> >> >
>>> >>
>>> >>
>>> >>
>>> >> --
>>> >> Best regards / Med venlig hilsen
>>> >> Nino Martinez
>>> >
>>> >
>>> >
>>> >
>>> > --
>>> >
>>> > Apache Member
>>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>>> > &
>>> > Project Lead
>>> > blog <http://notizblog.nierbeck.de/>
>>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>> >
>>> > Software Architect / Project Manager / Scrum Master
>>> >
>>>
>>>
>>>
>>> --
>>> Best regards / Med venlig hilsen
>>> Nino Martinez
>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>> Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
BTW changed to 3.0.4 and bound my job to Runnable, but still does not work..

Anyhow I will switch to 4.0.1 snapshot. And see how it is there.. And
get back to this thread. With the result.



On Wed, Aug 12, 2015 at 12:16 PM, Achim Nierbeck
<bc...@googlemail.com> wrote:
> Hi,
>
> might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
> repo,
> cause there was some sort of issue related to K4 and windows.
>
> regards, Achim
>
> 2015-08-12 12:06 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> But karaf never boots up.. And I never actually hit the line in my test.
>>
>> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
>> <bc...@googlemail.com> wrote:
>> > That one :-)
>> > is known and fixed in Karaf 4.0.1 which will be released soonish.
>> > It won't affect you in any way since it's just a bogus message.
>> >
>> > regards, Achim
>> >
>> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
>> > <ni...@gmail.com>:
>> >>
>> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>> >> karaf I get an wierd error:
>> >>
>> >> java.io.FileNotFoundException:
>> >>
>> >>
>> >> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>> >> (The filename, directory name, or volume label syntax is incorrect)
>> >>
>> >> Im wondering what "file:\" are doing in my path.. This is on windows..
>> >>
>> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>> >> <bc...@googlemail.com> wrote:
>> >> > Ah my fault that one is for Karaf 4,
>> >> > for Karaf 3.0.4 you'll need to register a Runnable class
>> >> > As can be seen from the activator [1].
>> >> >
>> >> > regards, Achim
>> >> >
>> >> > [1] -
>> >> >
>> >> >
>> >> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>> >> >
>> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>> >> > <ni...@gmail.com>:
>> >> >>
>> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
>> >> >>
>> >> >>
>> >> >>
>> >> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>> >> >> (the job) present?
>> >> >>
>> >> >> And thanks for the Karaf 4/exam tip :)
>> >> >> regards Nino
>> >> >>
>> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>> >> >> <bc...@googlemail.com>
>> >> >> wrote:
>> >> >> > Hi,
>> >> >> >
>> >> >> > you need to make sure your job is of type
>> >> >> > org.apache.karaf.scheduler.Job
>> >> >> > as this is the type the service tracker is looking for.
>> >> >> > This is the type you need to declare in the blueprint.xml.
>> >> >> >
>> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
>> >> >> > tests
>> >> >> > of
>> >> >> > Pax
>> >> >> > Web.
>> >> >> > We are using it very successfully. [1]
>> >> >> >
>> >> >> > regards, Achim
>> >> >> >
>> >> >> > [1] -
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>> >> >> >
>> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>> >> >> > <ni...@gmail.com>:
>> >> >> >>
>> >> >> >> Im having a hard time getting this to work, I've tried both with
>> >> >> >> the
>> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>> >> >> >> services) but none of them seems to pickup the jobs. Im using
>> >> >> >> karaf
>> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>> >> >> >>
>> >> >> >> I've been looking in source files of
>> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
>> >> >> >> but
>> >> >> >> no
>> >> >> >> tests are available. My bundle does boot up but are never
>> >> >> >> scheduled.
>> >> >> >>
>> >> >> >> My job are here:
>> >> >> >> https://paste.apache.org/1dQi
>> >> >> >> Blueprint:
>> >> >> >> https://paste.apache.org/mmTV
>> >> >> >> Pax exam test:
>> >> >> >> https://paste.apache.org/gsaN
>> >> >> >>
>> >> >> >> Any pointers are very much apreciated..
>> >> >> >>
>> >> >> >>
>> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>> >> >> >> <bc...@googlemail.com> wrote:
>> >> >> >> > Ok, because of Decanter I did take a look at the current
>> >> >> >> > scheduler
>> >> >> >> > embedded
>> >> >> >> > in Karaf.
>> >> >> >> > It's much more sophisticated then I previously thought.
>> >> >> >> >
>> >> >> >> > First it's already Quarz based, second if you install it via
>> >> >> >> > the
>> >> >> >> > scheduler
>> >> >> >> > feature you have commands to
>> >> >> >> > 1/ list
>> >> >> >> > 2/ schedule
>> >> >> >> > 3/ unschedule
>> >> >> >> >
>> >> >> >> > Programmatically one can add a new scheduler via a Service
>> >> >> >> > (whiteboard-pattern)
>> >> >> >> >
>> >> >> >> > regards, Achim
>> >> >> >> >
>> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>> >> >> >> > <bc...@googlemail.com>:
>> >> >> >> >>
>> >> >> >> >> yeah, a big +1 on the release :-)
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> regards, Achim
>> >> >> >> >>
>> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré
>> >> >> >> >> <jb...@nanthrax.net>:
>> >> >> >> >>>
>> >> >> >> >>> Yup, it would be great ;)
>> >> >> >> >>>
>> >> >> >> >>> Regards
>> >> >> >> >>> JB
>> >> >> >> >>>
>> >> >> >> >>>
>> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>> >> >> >> >>>>
>> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
>> >> >> >> >>>> wrote:
>> >> >> >> >>>>>
>> >> >> >> >>>>> By included, I thought about just refering Sling feature
>> >> >> >> >>>>> XML
>> >> >> >> >>>>> in
>> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>> >> >> >> >>>>> projects
>> >> >> >> >>>>> like
>> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag
>> >> >> >> >>>>> to
>> >> >> >> >>>>> Sling
>> >> >> >> >>>>> feature XML.
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>> Then we only need a release, fine.
>> >> >> >> >>>>
>> >> >> >> >>>> Regards,
>> >> >> >> >>>> O.
>> >> >> >> >>>>
>> >> >> >> >>>>> Regards
>> >> >> >> >>>>> JB
>> >> >> >> >>>>>
>> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>> >> >> >> >>>>>>
>> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>> >> >> >> >>>>>> wrote:
>> >> >> >> >>>>>>>
>> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>> >> >> >> >>>>>>> provide
>> >> >> >> >>>>>>> sling
>> >> >> >> >>>>>>> feature repo in Karaf.
>> >> >> >> >>>>>>
>> >> >> >> >>>>>>
>> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
>> >> >> >> >>>>>> Copying
>> >> >> >> >>>>>> the
>> >> >> >> >>>>>> file,
>> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling
>> >> >> >> >>>>>> to
>> >> >> >> >>>>>> Karaf...
>> >> >> >> >>>>>> what
>> >> >> >> >>>>>> else?
>> >> >> >> >>>>>>
>> >> >> >> >>>>>> O.
>> >> >> >> >>>>>>
>> >> >> >> >>>>>>> Regards
>> >> >> >> >>>>>>> JB
>> >> >> >> >>>>>>>
>> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>> >> >> >> >>>>>>>>
>> >> >> >> >>>>>>>> nice,
>> >> >> >> >>>>>>>>
>> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
>> >> >> >> >>>>>>>> Decanter?
>> >> >> >> >>>>>>>>
>> >> >> >> >>>>>>>> regards, Achim
>> >> >> >> >>>>
>> >> >> >> >>>>
>> >> >> >> >>>
>> >> >> >> >>> --
>> >> >> >> >>> Jean-Baptiste Onofré
>> >> >> >> >>> jbonofre@apache.org
>> >> >> >> >>> http://blog.nanthrax.net
>> >> >> >> >>> Talend - http://www.talend.com
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >>
>> >> >> >> >> --
>> >> >> >> >>
>> >> >> >> >> Apache Member
>> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> >> >> Committer
>> >> >> >> >> &
>> >> >> >> >> Project Lead
>> >> >> >> >> blog <http://notizblog.nierbeck.de/>
>> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >> >> >>
>> >> >> >> >> Software Architect / Project Manager / Scrum Master
>> >> >> >> >>
>> >> >> >> >
>> >> >> >> >
>> >> >> >> >
>> >> >> >> > --
>> >> >> >> >
>> >> >> >> > Apache Member
>> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> >> > Committer
>> >> >> >> > &
>> >> >> >> > Project Lead
>> >> >> >> > blog <http://notizblog.nierbeck.de/>
>> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >> >> >
>> >> >> >> > Software Architect / Project Manager / Scrum Master
>> >> >> >> >
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >> Best regards / Med venlig hilsen
>> >> >> >> Nino Martinez
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> >
>> >> >> > Apache Member
>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> > Committer
>> >> >> > &
>> >> >> > Project Lead
>> >> >> > blog <http://notizblog.nierbeck.de/>
>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >> >
>> >> >> > Software Architect / Project Manager / Scrum Master
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Best regards / Med venlig hilsen
>> >> >> Nino Martinez
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Apache Member
>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> > Committer
>> >> > &
>> >> > Project Lead
>> >> > blog <http://notizblog.nierbeck.de/>
>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >
>> >> > Software Architect / Project Manager / Scrum Master
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards / Med venlig hilsen
>> >> Nino Martinez
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

might want to check with the latest 4.0.1-SNAPSHOT from the apache snapshot
repo,
cause there was some sort of issue related to K4 and windows.

regards, Achim

2015-08-12 12:06 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> But karaf never boots up.. And I never actually hit the line in my test.
>
> On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
> <bc...@googlemail.com> wrote:
> > That one :-)
> > is known and fixed in Karaf 4.0.1 which will be released soonish.
> > It won't affect you in any way since it's just a bogus message.
> >
> > regards, Achim
> >
> > 2015-08-12 11:59 GMT+02:00 nino martinez wael
> > <ni...@gmail.com>:
> >>
> >> Okay so I decided to try to upgrade to karaf 4, using pax exam and
> >> karaf I get an wierd error:
> >>
> >> java.io.FileNotFoundException:
> >>
> >>
> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
> >> (The filename, directory name, or volume label syntax is incorrect)
> >>
> >> Im wondering what "file:\" are doing in my path.. This is on windows..
> >>
> >> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
> >> <bc...@googlemail.com> wrote:
> >> > Ah my fault that one is for Karaf 4,
> >> > for Karaf 3.0.4 you'll need to register a Runnable class
> >> > As can be seen from the activator [1].
> >> >
> >> > regards, Achim
> >> >
> >> > [1] -
> >> >
> >> >
> https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
> >> >
> >> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
> >> > <ni...@gmail.com>:
> >> >>
> >> >> Quick question, in which maven artifact for karaf 3.0.4 are
> >> >>
> >> >>
> >> >>
> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
> >> >> (the job) present?
> >> >>
> >> >> And thanks for the Karaf 4/exam tip :)
> >> >> regards Nino
> >> >>
> >> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
> >> >> <bc...@googlemail.com>
> >> >> wrote:
> >> >> > Hi,
> >> >> >
> >> >> > you need to make sure your job is of type
> >> >> > org.apache.karaf.scheduler.Job
> >> >> > as this is the type the service tracker is looking for.
> >> >> > This is the type you need to declare in the blueprint.xml.
> >> >> >
> >> >> > regarding Karaf 4 and Pax Exam, take a look at the integration
> tests
> >> >> > of
> >> >> > Pax
> >> >> > Web.
> >> >> > We are using it very successfully. [1]
> >> >> >
> >> >> > regards, Achim
> >> >> >
> >> >> > [1] -
> >> >> >
> >> >> >
> >> >> >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
> >> >> >
> >> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
> >> >> > <ni...@gmail.com>:
> >> >> >>
> >> >> >> Im having a hard time getting this to work, I've tried both with
> the
> >> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
> >> >> >> services) but none of them seems to pickup the jobs. Im using
> karaf
> >> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
> >> >> >>
> >> >> >> I've been looking in source files of
> >> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main
> but
> >> >> >> no
> >> >> >> tests are available. My bundle does boot up but are never
> scheduled.
> >> >> >>
> >> >> >> My job are here:
> >> >> >> https://paste.apache.org/1dQi
> >> >> >> Blueprint:
> >> >> >> https://paste.apache.org/mmTV
> >> >> >> Pax exam test:
> >> >> >> https://paste.apache.org/gsaN
> >> >> >>
> >> >> >> Any pointers are very much apreciated..
> >> >> >>
> >> >> >>
> >> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
> >> >> >> <bc...@googlemail.com> wrote:
> >> >> >> > Ok, because of Decanter I did take a look at the current
> scheduler
> >> >> >> > embedded
> >> >> >> > in Karaf.
> >> >> >> > It's much more sophisticated then I previously thought.
> >> >> >> >
> >> >> >> > First it's already Quarz based, second if you install it via the
> >> >> >> > scheduler
> >> >> >> > feature you have commands to
> >> >> >> > 1/ list
> >> >> >> > 2/ schedule
> >> >> >> > 3/ unschedule
> >> >> >> >
> >> >> >> > Programmatically one can add a new scheduler via a Service
> >> >> >> > (whiteboard-pattern)
> >> >> >> >
> >> >> >> > regards, Achim
> >> >> >> >
> >> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
> >> >> >> > <bc...@googlemail.com>:
> >> >> >> >>
> >> >> >> >> yeah, a big +1 on the release :-)
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> regards, Achim
> >> >> >> >>
> >> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <
> jb@nanthrax.net>:
> >> >> >> >>>
> >> >> >> >>> Yup, it would be great ;)
> >> >> >> >>>
> >> >> >> >>> Regards
> >> >> >> >>> JB
> >> >> >> >>>
> >> >> >> >>>
> >> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
> >> >> >> >>>>
> >> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré
> wrote:
> >> >> >> >>>>>
> >> >> >> >>>>> By included, I thought about just refering Sling feature XML
> >> >> >> >>>>> in
> >> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
> >> >> >> >>>>> projects
> >> >> >> >>>>> like
> >> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
> >> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to
> >> >> >> >>>>> Sling
> >> >> >> >>>>> feature XML.
> >> >> >> >>>>
> >> >> >> >>>>
> >> >> >> >>>> Then we only need a release, fine.
> >> >> >> >>>>
> >> >> >> >>>> Regards,
> >> >> >> >>>> O.
> >> >> >> >>>>
> >> >> >> >>>>> Regards
> >> >> >> >>>>> JB
> >> >> >> >>>>>
> >> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> >> >> >> >>>>>>
> >> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
> >> >> >> >>>>>> wrote:
> >> >> >> >>>>>>>
> >> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
> >> >> >> >>>>>>> provide
> >> >> >> >>>>>>> sling
> >> >> >> >>>>>>> feature repo in Karaf.
> >> >> >> >>>>>>
> >> >> >> >>>>>>
> >> >> >> >>>>>> ak, ok - included in Karaf. What options do we have?
> Copying
> >> >> >> >>>>>> the
> >> >> >> >>>>>> file,
> >> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
> >> >> >> >>>>>> Karaf...
> >> >> >> >>>>>> what
> >> >> >> >>>>>> else?
> >> >> >> >>>>>>
> >> >> >> >>>>>> O.
> >> >> >> >>>>>>
> >> >> >> >>>>>>> Regards
> >> >> >> >>>>>>> JB
> >> >> >> >>>>>>>
> >> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> >> >> >> >>>>>>>>
> >> >> >> >>>>>>>> nice,
> >> >> >> >>>>>>>>
> >> >> >> >>>>>>>> @JB, do you think that scheduler can be used for
> Decanter?
> >> >> >> >>>>>>>>
> >> >> >> >>>>>>>> regards, Achim
> >> >> >> >>>>
> >> >> >> >>>>
> >> >> >> >>>
> >> >> >> >>> --
> >> >> >> >>> Jean-Baptiste Onofré
> >> >> >> >>> jbonofre@apache.org
> >> >> >> >>> http://blog.nanthrax.net
> >> >> >> >>> Talend - http://www.talend.com
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >>
> >> >> >> >> --
> >> >> >> >>
> >> >> >> >> Apache Member
> >> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >> >> >> >> Committer
> >> >> >> >> &
> >> >> >> >> Project Lead
> >> >> >> >> blog <http://notizblog.nierbeck.de/>
> >> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >> >> >>
> >> >> >> >> Software Architect / Project Manager / Scrum Master
> >> >> >> >>
> >> >> >> >
> >> >> >> >
> >> >> >> >
> >> >> >> > --
> >> >> >> >
> >> >> >> > Apache Member
> >> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >> >> >> > Committer
> >> >> >> > &
> >> >> >> > Project Lead
> >> >> >> > blog <http://notizblog.nierbeck.de/>
> >> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >> >> >
> >> >> >> > Software Architect / Project Manager / Scrum Master
> >> >> >> >
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >> Best regards / Med venlig hilsen
> >> >> >> Nino Martinez
> >> >> >
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> >
> >> >> > Apache Member
> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >> >> > Committer
> >> >> > &
> >> >> > Project Lead
> >> >> > blog <http://notizblog.nierbeck.de/>
> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >> >
> >> >> > Software Architect / Project Manager / Scrum Master
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Best regards / Med venlig hilsen
> >> >> Nino Martinez
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Apache Member
> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> >> > &
> >> > Project Lead
> >> > blog <http://notizblog.nierbeck.de/>
> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >
> >> > Software Architect / Project Manager / Scrum Master
> >> >
> >>
> >>
> >>
> >> --
> >> Best regards / Med venlig hilsen
> >> Nino Martinez
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
But karaf never boots up.. And I never actually hit the line in my test.

On Wed, Aug 12, 2015 at 12:00 PM, Achim Nierbeck
<bc...@googlemail.com> wrote:
> That one :-)
> is known and fixed in Karaf 4.0.1 which will be released soonish.
> It won't affect you in any way since it's just a bogus message.
>
> regards, Achim
>
> 2015-08-12 11:59 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> Okay so I decided to try to upgrade to karaf 4, using pax exam and
>> karaf I get an wierd error:
>>
>> java.io.FileNotFoundException:
>>
>> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
>> (The filename, directory name, or volume label syntax is incorrect)
>>
>> Im wondering what "file:\" are doing in my path.. This is on windows..
>>
>> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
>> <bc...@googlemail.com> wrote:
>> > Ah my fault that one is for Karaf 4,
>> > for Karaf 3.0.4 you'll need to register a Runnable class
>> > As can be seen from the activator [1].
>> >
>> > regards, Achim
>> >
>> > [1] -
>> >
>> > https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>> >
>> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
>> > <ni...@gmail.com>:
>> >>
>> >> Quick question, in which maven artifact for karaf 3.0.4 are
>> >>
>> >>
>> >> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>> >> (the job) present?
>> >>
>> >> And thanks for the Karaf 4/exam tip :)
>> >> regards Nino
>> >>
>> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck
>> >> <bc...@googlemail.com>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > you need to make sure your job is of type
>> >> > org.apache.karaf.scheduler.Job
>> >> > as this is the type the service tracker is looking for.
>> >> > This is the type you need to declare in the blueprint.xml.
>> >> >
>> >> > regarding Karaf 4 and Pax Exam, take a look at the integration tests
>> >> > of
>> >> > Pax
>> >> > Web.
>> >> > We are using it very successfully. [1]
>> >> >
>> >> > regards, Achim
>> >> >
>> >> > [1] -
>> >> >
>> >> >
>> >> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>> >> >
>> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>> >> > <ni...@gmail.com>:
>> >> >>
>> >> >> Im having a hard time getting this to work, I've tried both with the
>> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>> >> >> services) but none of them seems to pickup the jobs. Im using karaf
>> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>> >> >>
>> >> >> I've been looking in source files of
>> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main but
>> >> >> no
>> >> >> tests are available. My bundle does boot up but are never scheduled.
>> >> >>
>> >> >> My job are here:
>> >> >> https://paste.apache.org/1dQi
>> >> >> Blueprint:
>> >> >> https://paste.apache.org/mmTV
>> >> >> Pax exam test:
>> >> >> https://paste.apache.org/gsaN
>> >> >>
>> >> >> Any pointers are very much apreciated..
>> >> >>
>> >> >>
>> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>> >> >> <bc...@googlemail.com> wrote:
>> >> >> > Ok, because of Decanter I did take a look at the current scheduler
>> >> >> > embedded
>> >> >> > in Karaf.
>> >> >> > It's much more sophisticated then I previously thought.
>> >> >> >
>> >> >> > First it's already Quarz based, second if you install it via the
>> >> >> > scheduler
>> >> >> > feature you have commands to
>> >> >> > 1/ list
>> >> >> > 2/ schedule
>> >> >> > 3/ unschedule
>> >> >> >
>> >> >> > Programmatically one can add a new scheduler via a Service
>> >> >> > (whiteboard-pattern)
>> >> >> >
>> >> >> > regards, Achim
>> >> >> >
>> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck
>> >> >> > <bc...@googlemail.com>:
>> >> >> >>
>> >> >> >> yeah, a big +1 on the release :-)
>> >> >> >>
>> >> >> >>
>> >> >> >> regards, Achim
>> >> >> >>
>> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>> >> >> >>>
>> >> >> >>> Yup, it would be great ;)
>> >> >> >>>
>> >> >> >>> Regards
>> >> >> >>> JB
>> >> >> >>>
>> >> >> >>>
>> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>> >> >> >>>>
>> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>> >> >> >>>>>
>> >> >> >>>>> By included, I thought about just refering Sling feature XML
>> >> >> >>>>> in
>> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>> >> >> >>>>> projects
>> >> >> >>>>> like
>> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to
>> >> >> >>>>> Sling
>> >> >> >>>>> feature XML.
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>> Then we only need a release, fine.
>> >> >> >>>>
>> >> >> >>>> Regards,
>> >> >> >>>> O.
>> >> >> >>>>
>> >> >> >>>>> Regards
>> >> >> >>>>> JB
>> >> >> >>>>>
>> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>> >> >> >>>>>>
>> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
>> >> >> >>>>>> wrote:
>> >> >> >>>>>>>
>> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
>> >> >> >>>>>>> provide
>> >> >> >>>>>>> sling
>> >> >> >>>>>>> feature repo in Karaf.
>> >> >> >>>>>>
>> >> >> >>>>>>
>> >> >> >>>>>> ak, ok - included in Karaf. What options do we have? Copying
>> >> >> >>>>>> the
>> >> >> >>>>>> file,
>> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
>> >> >> >>>>>> Karaf...
>> >> >> >>>>>> what
>> >> >> >>>>>> else?
>> >> >> >>>>>>
>> >> >> >>>>>> O.
>> >> >> >>>>>>
>> >> >> >>>>>>> Regards
>> >> >> >>>>>>> JB
>> >> >> >>>>>>>
>> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> nice,
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>> >> >> >>>>>>>>
>> >> >> >>>>>>>> regards, Achim
>> >> >> >>>>
>> >> >> >>>>
>> >> >> >>>
>> >> >> >>> --
>> >> >> >>> Jean-Baptiste Onofré
>> >> >> >>> jbonofre@apache.org
>> >> >> >>> http://blog.nanthrax.net
>> >> >> >>> Talend - http://www.talend.com
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >>
>> >> >> >> --
>> >> >> >>
>> >> >> >> Apache Member
>> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> >> Committer
>> >> >> >> &
>> >> >> >> Project Lead
>> >> >> >> blog <http://notizblog.nierbeck.de/>
>> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >> >>
>> >> >> >> Software Architect / Project Manager / Scrum Master
>> >> >> >>
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > --
>> >> >> >
>> >> >> > Apache Member
>> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> > Committer
>> >> >> > &
>> >> >> > Project Lead
>> >> >> > blog <http://notizblog.nierbeck.de/>
>> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >> >
>> >> >> > Software Architect / Project Manager / Scrum Master
>> >> >> >
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> Best regards / Med venlig hilsen
>> >> >> Nino Martinez
>> >> >
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Apache Member
>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> > Committer
>> >> > &
>> >> > Project Lead
>> >> > blog <http://notizblog.nierbeck.de/>
>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >
>> >> > Software Architect / Project Manager / Scrum Master
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards / Med venlig hilsen
>> >> Nino Martinez
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
That one :-)
is known and fixed in Karaf 4.0.1 which will be released soonish.
It won't affect you in any way since it's just a bogus message.

regards, Achim

2015-08-12 11:59 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> Okay so I decided to try to upgrade to karaf 4, using pax exam and
> karaf I get an wierd error:
>
> java.io.FileNotFoundException:
>
> C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
> (The filename, directory name, or volume label syntax is incorrect)
>
> Im wondering what "file:\" are doing in my path.. This is on windows..
>
> On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
> <bc...@googlemail.com> wrote:
> > Ah my fault that one is for Karaf 4,
> > for Karaf 3.0.4 you'll need to register a Runnable class
> > As can be seen from the activator [1].
> >
> > regards, Achim
> >
> > [1] -
> >
> https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
> >
> > 2015-08-12 11:27 GMT+02:00 nino martinez wael
> > <ni...@gmail.com>:
> >>
> >> Quick question, in which maven artifact for karaf 3.0.4 are
> >>
> >>
> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
> >> (the job) present?
> >>
> >> And thanks for the Karaf 4/exam tip :)
> >> regards Nino
> >>
> >> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck <
> bcanhome@googlemail.com>
> >> wrote:
> >> > Hi,
> >> >
> >> > you need to make sure your job is of type
> >> > org.apache.karaf.scheduler.Job
> >> > as this is the type the service tracker is looking for.
> >> > This is the type you need to declare in the blueprint.xml.
> >> >
> >> > regarding Karaf 4 and Pax Exam, take a look at the integration tests
> of
> >> > Pax
> >> > Web.
> >> > We are using it very successfully. [1]
> >> >
> >> > regards, Achim
> >> >
> >> > [1] -
> >> >
> >> >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
> >> >
> >> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
> >> > <ni...@gmail.com>:
> >> >>
> >> >> Im having a hard time getting this to work, I've tried both with the
> >> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
> >> >> services) but none of them seems to pickup the jobs. Im using karaf
> >> >> 3.0.4 since I cant get 4.0 to work with pax exam.
> >> >>
> >> >> I've been looking in source files of
> >> >> https://github.com/apache/karaf/tree/master/scheduler/src/main but
> no
> >> >> tests are available. My bundle does boot up but are never scheduled.
> >> >>
> >> >> My job are here:
> >> >> https://paste.apache.org/1dQi
> >> >> Blueprint:
> >> >> https://paste.apache.org/mmTV
> >> >> Pax exam test:
> >> >> https://paste.apache.org/gsaN
> >> >>
> >> >> Any pointers are very much apreciated..
> >> >>
> >> >>
> >> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
> >> >> <bc...@googlemail.com> wrote:
> >> >> > Ok, because of Decanter I did take a look at the current scheduler
> >> >> > embedded
> >> >> > in Karaf.
> >> >> > It's much more sophisticated then I previously thought.
> >> >> >
> >> >> > First it's already Quarz based, second if you install it via the
> >> >> > scheduler
> >> >> > feature you have commands to
> >> >> > 1/ list
> >> >> > 2/ schedule
> >> >> > 3/ unschedule
> >> >> >
> >> >> > Programmatically one can add a new scheduler via a Service
> >> >> > (whiteboard-pattern)
> >> >> >
> >> >> > regards, Achim
> >> >> >
> >> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bcanhome@googlemail.com
> >:
> >> >> >>
> >> >> >> yeah, a big +1 on the release :-)
> >> >> >>
> >> >> >>
> >> >> >> regards, Achim
> >> >> >>
> >> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> >> >> >>>
> >> >> >>> Yup, it would be great ;)
> >> >> >>>
> >> >> >>> Regards
> >> >> >>> JB
> >> >> >>>
> >> >> >>>
> >> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
> >> >> >>>>
> >> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
> >> >> >>>>>
> >> >> >>>>> By included, I thought about just refering Sling feature XML in
> >> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
> >> >> >>>>> projects
> >> >> >>>>> like
> >> >> >>>>> Camel, ActiveMQ, Cellar, etc).
> >> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to
> >> >> >>>>> Sling
> >> >> >>>>> feature XML.
> >> >> >>>>
> >> >> >>>>
> >> >> >>>> Then we only need a release, fine.
> >> >> >>>>
> >> >> >>>> Regards,
> >> >> >>>> O.
> >> >> >>>>
> >> >> >>>>> Regards
> >> >> >>>>> JB
> >> >> >>>>>
> >> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> >> >> >>>>>>
> >> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré
> wrote:
> >> >> >>>>>>>
> >> >> >>>>>>> Good point, I think so. That's why it would make sense to
> >> >> >>>>>>> provide
> >> >> >>>>>>> sling
> >> >> >>>>>>> feature repo in Karaf.
> >> >> >>>>>>
> >> >> >>>>>>
> >> >> >>>>>> ak, ok - included in Karaf. What options do we have? Copying
> the
> >> >> >>>>>> file,
> >> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
> >> >> >>>>>> Karaf...
> >> >> >>>>>> what
> >> >> >>>>>> else?
> >> >> >>>>>>
> >> >> >>>>>> O.
> >> >> >>>>>>
> >> >> >>>>>>> Regards
> >> >> >>>>>>> JB
> >> >> >>>>>>>
> >> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> >> >> >>>>>>>>
> >> >> >>>>>>>> nice,
> >> >> >>>>>>>>
> >> >> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
> >> >> >>>>>>>>
> >> >> >>>>>>>> regards, Achim
> >> >> >>>>
> >> >> >>>>
> >> >> >>>
> >> >> >>> --
> >> >> >>> Jean-Baptiste Onofré
> >> >> >>> jbonofre@apache.org
> >> >> >>> http://blog.nanthrax.net
> >> >> >>> Talend - http://www.talend.com
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >>
> >> >> >> --
> >> >> >>
> >> >> >> Apache Member
> >> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >> >> >> Committer
> >> >> >> &
> >> >> >> Project Lead
> >> >> >> blog <http://notizblog.nierbeck.de/>
> >> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >> >>
> >> >> >> Software Architect / Project Manager / Scrum Master
> >> >> >>
> >> >> >
> >> >> >
> >> >> >
> >> >> > --
> >> >> >
> >> >> > Apache Member
> >> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >> >> > Committer
> >> >> > &
> >> >> > Project Lead
> >> >> > blog <http://notizblog.nierbeck.de/>
> >> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >> >
> >> >> > Software Architect / Project Manager / Scrum Master
> >> >> >
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >> Best regards / Med venlig hilsen
> >> >> Nino Martinez
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Apache Member
> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> >> > &
> >> > Project Lead
> >> > blog <http://notizblog.nierbeck.de/>
> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >
> >> > Software Architect / Project Manager / Scrum Master
> >> >
> >>
> >>
> >>
> >> --
> >> Best regards / Med venlig hilsen
> >> Nino Martinez
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Okay so I decided to try to upgrade to karaf 4, using pax exam and
karaf I get an wierd error:

java.io.FileNotFoundException:
C:\nino\develop\workspace\datatransfer\datatransfer-test\target\exam4\08a3ba77-be44-4036-b66a-406c535c166b\system\file:\x1\asf\karaf\k40x\target\checkout\assemblies\apache-karaf\target\assembly\system\org\apache\karaf\features\framework\4.0.0\framework-4.0.0-features.xml
(The filename, directory name, or volume label syntax is incorrect)

Im wondering what "file:\" are doing in my path.. This is on windows..

On Wed, Aug 12, 2015 at 11:46 AM, Achim Nierbeck
<bc...@googlemail.com> wrote:
> Ah my fault that one is for Karaf 4,
> for Karaf 3.0.4 you'll need to register a Runnable class
> As can be seen from the activator [1].
>
> regards, Achim
>
> [1] -
> https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java
>
> 2015-08-12 11:27 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> Quick question, in which maven artifact for karaf 3.0.4 are
>>
>> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
>> (the job) present?
>>
>> And thanks for the Karaf 4/exam tip :)
>> regards Nino
>>
>> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck <bc...@googlemail.com>
>> wrote:
>> > Hi,
>> >
>> > you need to make sure your job is of type
>> > org.apache.karaf.scheduler.Job
>> > as this is the type the service tracker is looking for.
>> > This is the type you need to declare in the blueprint.xml.
>> >
>> > regarding Karaf 4 and Pax Exam, take a look at the integration tests of
>> > Pax
>> > Web.
>> > We are using it very successfully. [1]
>> >
>> > regards, Achim
>> >
>> > [1] -
>> >
>> > https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>> >
>> > 2015-08-12 8:34 GMT+02:00 nino martinez wael
>> > <ni...@gmail.com>:
>> >>
>> >> Im having a hard time getting this to work, I've tried both with the
>> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>> >> services) but none of them seems to pickup the jobs. Im using karaf
>> >> 3.0.4 since I cant get 4.0 to work with pax exam.
>> >>
>> >> I've been looking in source files of
>> >> https://github.com/apache/karaf/tree/master/scheduler/src/main but no
>> >> tests are available. My bundle does boot up but are never scheduled.
>> >>
>> >> My job are here:
>> >> https://paste.apache.org/1dQi
>> >> Blueprint:
>> >> https://paste.apache.org/mmTV
>> >> Pax exam test:
>> >> https://paste.apache.org/gsaN
>> >>
>> >> Any pointers are very much apreciated..
>> >>
>> >>
>> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>> >> <bc...@googlemail.com> wrote:
>> >> > Ok, because of Decanter I did take a look at the current scheduler
>> >> > embedded
>> >> > in Karaf.
>> >> > It's much more sophisticated then I previously thought.
>> >> >
>> >> > First it's already Quarz based, second if you install it via the
>> >> > scheduler
>> >> > feature you have commands to
>> >> > 1/ list
>> >> > 2/ schedule
>> >> > 3/ unschedule
>> >> >
>> >> > Programmatically one can add a new scheduler via a Service
>> >> > (whiteboard-pattern)
>> >> >
>> >> > regards, Achim
>> >> >
>> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
>> >> >>
>> >> >> yeah, a big +1 on the release :-)
>> >> >>
>> >> >>
>> >> >> regards, Achim
>> >> >>
>> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>> >> >>>
>> >> >>> Yup, it would be great ;)
>> >> >>>
>> >> >>> Regards
>> >> >>> JB
>> >> >>>
>> >> >>>
>> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>> >> >>>>
>> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>> >> >>>>>
>> >> >>>>> By included, I thought about just refering Sling feature XML in
>> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
>> >> >>>>> projects
>> >> >>>>> like
>> >> >>>>> Camel, ActiveMQ, Cellar, etc).
>> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to
>> >> >>>>> Sling
>> >> >>>>> feature XML.
>> >> >>>>
>> >> >>>>
>> >> >>>> Then we only need a release, fine.
>> >> >>>>
>> >> >>>> Regards,
>> >> >>>> O.
>> >> >>>>
>> >> >>>>> Regards
>> >> >>>>> JB
>> >> >>>>>
>> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>> >> >>>>>>
>> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>> >> >>>>>>>
>> >> >>>>>>> Good point, I think so. That's why it would make sense to
>> >> >>>>>>> provide
>> >> >>>>>>> sling
>> >> >>>>>>> feature repo in Karaf.
>> >> >>>>>>
>> >> >>>>>>
>> >> >>>>>> ak, ok - included in Karaf. What options do we have? Copying the
>> >> >>>>>> file,
>> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
>> >> >>>>>> Karaf...
>> >> >>>>>> what
>> >> >>>>>> else?
>> >> >>>>>>
>> >> >>>>>> O.
>> >> >>>>>>
>> >> >>>>>>> Regards
>> >> >>>>>>> JB
>> >> >>>>>>>
>> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>> >> >>>>>>>>
>> >> >>>>>>>> nice,
>> >> >>>>>>>>
>> >> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>> >> >>>>>>>>
>> >> >>>>>>>> regards, Achim
>> >> >>>>
>> >> >>>>
>> >> >>>
>> >> >>> --
>> >> >>> Jean-Baptiste Onofré
>> >> >>> jbonofre@apache.org
>> >> >>> http://blog.nanthrax.net
>> >> >>> Talend - http://www.talend.com
>> >> >>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >>
>> >> >> Apache Member
>> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> >> Committer
>> >> >> &
>> >> >> Project Lead
>> >> >> blog <http://notizblog.nierbeck.de/>
>> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >>
>> >> >> Software Architect / Project Manager / Scrum Master
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> >
>> >> > Apache Member
>> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>> >> > Committer
>> >> > &
>> >> > Project Lead
>> >> > blog <http://notizblog.nierbeck.de/>
>> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >> >
>> >> > Software Architect / Project Manager / Scrum Master
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards / Med venlig hilsen
>> >> Nino Martinez
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
Ah my fault that one is for Karaf 4,
for Karaf 3.0.4 you'll need to register a Runnable class
As can be seen from the activator [1].

regards, Achim

[1] -
https://github.com/apache/karaf/blob/karaf-3.0.x/scheduler/core/src/main/java/org/apache/karaf/scheduler/core/Activator.java

2015-08-12 11:27 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> Quick question, in which maven artifact for karaf 3.0.4 are
>
> https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
> (the job) present?
>
> And thanks for the Karaf 4/exam tip :)
> regards Nino
>
> On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck <bc...@googlemail.com>
> wrote:
> > Hi,
> >
> > you need to make sure your job is of type
> > org.apache.karaf.scheduler.Job
> > as this is the type the service tracker is looking for.
> > This is the type you need to declare in the blueprint.xml.
> >
> > regarding Karaf 4 and Pax Exam, take a look at the integration tests of
> Pax
> > Web.
> > We are using it very successfully. [1]
> >
> > regards, Achim
> >
> > [1] -
> >
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
> >
> > 2015-08-12 8:34 GMT+02:00 nino martinez wael <
> nino.martinez.wael@gmail.com>:
> >>
> >> Im having a hard time getting this to work, I've tried both with the
> >> Karaf scheduler (blueprint) and the Sling scheduler (declarative
> >> services) but none of them seems to pickup the jobs. Im using karaf
> >> 3.0.4 since I cant get 4.0 to work with pax exam.
> >>
> >> I've been looking in source files of
> >> https://github.com/apache/karaf/tree/master/scheduler/src/main but no
> >> tests are available. My bundle does boot up but are never scheduled.
> >>
> >> My job are here:
> >> https://paste.apache.org/1dQi
> >> Blueprint:
> >> https://paste.apache.org/mmTV
> >> Pax exam test:
> >> https://paste.apache.org/gsaN
> >>
> >> Any pointers are very much apreciated..
> >>
> >>
> >> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
> >> <bc...@googlemail.com> wrote:
> >> > Ok, because of Decanter I did take a look at the current scheduler
> >> > embedded
> >> > in Karaf.
> >> > It's much more sophisticated then I previously thought.
> >> >
> >> > First it's already Quarz based, second if you install it via the
> >> > scheduler
> >> > feature you have commands to
> >> > 1/ list
> >> > 2/ schedule
> >> > 3/ unschedule
> >> >
> >> > Programmatically one can add a new scheduler via a Service
> >> > (whiteboard-pattern)
> >> >
> >> > regards, Achim
> >> >
> >> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> >> >>
> >> >> yeah, a big +1 on the release :-)
> >> >>
> >> >>
> >> >> regards, Achim
> >> >>
> >> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> >> >>>
> >> >>> Yup, it would be great ;)
> >> >>>
> >> >>> Regards
> >> >>> JB
> >> >>>
> >> >>>
> >> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
> >> >>>>
> >> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
> >> >>>>>
> >> >>>>> By included, I thought about just refering Sling feature XML in
> >> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other
> projects
> >> >>>>> like
> >> >>>>> Camel, ActiveMQ, Cellar, etc).
> >> >>>>> In the Decanter feature XML, we can add <repository/> tag to Sling
> >> >>>>> feature XML.
> >> >>>>
> >> >>>>
> >> >>>> Then we only need a release, fine.
> >> >>>>
> >> >>>> Regards,
> >> >>>> O.
> >> >>>>
> >> >>>>> Regards
> >> >>>>> JB
> >> >>>>>
> >> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> >> >>>>>>
> >> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
> >> >>>>>>>
> >> >>>>>>> Good point, I think so. That's why it would make sense to
> provide
> >> >>>>>>> sling
> >> >>>>>>> feature repo in Karaf.
> >> >>>>>>
> >> >>>>>>
> >> >>>>>> ak, ok - included in Karaf. What options do we have? Copying the
> >> >>>>>> file,
> >> >>>>>> copying the feature, Maven dependency, moving from Sling to
> >> >>>>>> Karaf...
> >> >>>>>> what
> >> >>>>>> else?
> >> >>>>>>
> >> >>>>>> O.
> >> >>>>>>
> >> >>>>>>> Regards
> >> >>>>>>> JB
> >> >>>>>>>
> >> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> >> >>>>>>>>
> >> >>>>>>>> nice,
> >> >>>>>>>>
> >> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
> >> >>>>>>>>
> >> >>>>>>>> regards, Achim
> >> >>>>
> >> >>>>
> >> >>>
> >> >>> --
> >> >>> Jean-Baptiste Onofré
> >> >>> jbonofre@apache.org
> >> >>> http://blog.nanthrax.net
> >> >>> Talend - http://www.talend.com
> >> >>
> >> >>
> >> >>
> >> >>
> >> >> --
> >> >>
> >> >> Apache Member
> >> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> >> >> &
> >> >> Project Lead
> >> >> blog <http://notizblog.nierbeck.de/>
> >> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >>
> >> >> Software Architect / Project Manager / Scrum Master
> >> >>
> >> >
> >> >
> >> >
> >> > --
> >> >
> >> > Apache Member
> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer
> >> > &
> >> > Project Lead
> >> > blog <http://notizblog.nierbeck.de/>
> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> >
> >> > Software Architect / Project Manager / Scrum Master
> >> >
> >>
> >>
> >>
> >> --
> >> Best regards / Med venlig hilsen
> >> Nino Martinez
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Quick question, in which maven artifact for karaf 3.0.4 are
https://github.com/apache/karaf/blob/master/scheduler/src/main/java/org/apache/karaf/scheduler/Job.java
(the job) present?

And thanks for the Karaf 4/exam tip :)
regards Nino

On Wed, Aug 12, 2015 at 9:46 AM, Achim Nierbeck <bc...@googlemail.com> wrote:
> Hi,
>
> you need to make sure your job is of type
> org.apache.karaf.scheduler.Job
> as this is the type the service tracker is looking for.
> This is the type you need to declare in the blueprint.xml.
>
> regarding Karaf 4 and Pax Exam, take a look at the integration tests of Pax
> Web.
> We are using it very successfully. [1]
>
> regards, Achim
>
> [1] -
> https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf
>
> 2015-08-12 8:34 GMT+02:00 nino martinez wael <ni...@gmail.com>:
>>
>> Im having a hard time getting this to work, I've tried both with the
>> Karaf scheduler (blueprint) and the Sling scheduler (declarative
>> services) but none of them seems to pickup the jobs. Im using karaf
>> 3.0.4 since I cant get 4.0 to work with pax exam.
>>
>> I've been looking in source files of
>> https://github.com/apache/karaf/tree/master/scheduler/src/main but no
>> tests are available. My bundle does boot up but are never scheduled.
>>
>> My job are here:
>> https://paste.apache.org/1dQi
>> Blueprint:
>> https://paste.apache.org/mmTV
>> Pax exam test:
>> https://paste.apache.org/gsaN
>>
>> Any pointers are very much apreciated..
>>
>>
>> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
>> <bc...@googlemail.com> wrote:
>> > Ok, because of Decanter I did take a look at the current scheduler
>> > embedded
>> > in Karaf.
>> > It's much more sophisticated then I previously thought.
>> >
>> > First it's already Quarz based, second if you install it via the
>> > scheduler
>> > feature you have commands to
>> > 1/ list
>> > 2/ schedule
>> > 3/ unschedule
>> >
>> > Programmatically one can add a new scheduler via a Service
>> > (whiteboard-pattern)
>> >
>> > regards, Achim
>> >
>> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
>> >>
>> >> yeah, a big +1 on the release :-)
>> >>
>> >>
>> >> regards, Achim
>> >>
>> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>> >>>
>> >>> Yup, it would be great ;)
>> >>>
>> >>> Regards
>> >>> JB
>> >>>
>> >>>
>> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>> >>>>
>> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>> >>>>>
>> >>>>> By included, I thought about just refering Sling feature XML in
>> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects
>> >>>>> like
>> >>>>> Camel, ActiveMQ, Cellar, etc).
>> >>>>> In the Decanter feature XML, we can add <repository/> tag to Sling
>> >>>>> feature XML.
>> >>>>
>> >>>>
>> >>>> Then we only need a release, fine.
>> >>>>
>> >>>> Regards,
>> >>>> O.
>> >>>>
>> >>>>> Regards
>> >>>>> JB
>> >>>>>
>> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>> >>>>>>
>> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>> >>>>>>>
>> >>>>>>> Good point, I think so. That's why it would make sense to provide
>> >>>>>>> sling
>> >>>>>>> feature repo in Karaf.
>> >>>>>>
>> >>>>>>
>> >>>>>> ak, ok - included in Karaf. What options do we have? Copying the
>> >>>>>> file,
>> >>>>>> copying the feature, Maven dependency, moving from Sling to
>> >>>>>> Karaf...
>> >>>>>> what
>> >>>>>> else?
>> >>>>>>
>> >>>>>> O.
>> >>>>>>
>> >>>>>>> Regards
>> >>>>>>> JB
>> >>>>>>>
>> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>> >>>>>>>>
>> >>>>>>>> nice,
>> >>>>>>>>
>> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>> >>>>>>>>
>> >>>>>>>> regards, Achim
>> >>>>
>> >>>>
>> >>>
>> >>> --
>> >>> Jean-Baptiste Onofré
>> >>> jbonofre@apache.org
>> >>> http://blog.nanthrax.net
>> >>> Talend - http://www.talend.com
>> >>
>> >>
>> >>
>> >>
>> >> --
>> >>
>> >> Apache Member
>> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> >> &
>> >> Project Lead
>> >> blog <http://notizblog.nierbeck.de/>
>> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >>
>> >> Software Architect / Project Manager / Scrum Master
>> >>
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

you need to make sure your job is of type
org.apache.karaf.scheduler.Job
as this is the type the service tracker is looking for.
This is the type you need to declare in the blueprint.xml.

regarding Karaf 4 and Pax Exam, take a look at the integration tests of Pax
Web.
We are using it very successfully. [1]

regards, Achim

[1] -
https://github.com/ops4j/org.ops4j.pax.web/tree/master/pax-web-itest/pax-web-itest-karaf

2015-08-12 8:34 GMT+02:00 nino martinez wael <ni...@gmail.com>:

> Im having a hard time getting this to work, I've tried both with the
> Karaf scheduler (blueprint) and the Sling scheduler (declarative
> services) but none of them seems to pickup the jobs. Im using karaf
> 3.0.4 since I cant get 4.0 to work with pax exam.
>
> I've been looking in source files of
> https://github.com/apache/karaf/tree/master/scheduler/src/main but no
> tests are available. My bundle does boot up but are never scheduled.
>
> My job are here:
> https://paste.apache.org/1dQi
> Blueprint:
> https://paste.apache.org/mmTV
> Pax exam test:
> https://paste.apache.org/gsaN
>
> Any pointers are very much apreciated..
>
>
> On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
> <bc...@googlemail.com> wrote:
> > Ok, because of Decanter I did take a look at the current scheduler
> embedded
> > in Karaf.
> > It's much more sophisticated then I previously thought.
> >
> > First it's already Quarz based, second if you install it via the
> scheduler
> > feature you have commands to
> > 1/ list
> > 2/ schedule
> > 3/ unschedule
> >
> > Programmatically one can add a new scheduler via a Service
> > (whiteboard-pattern)
> >
> > regards, Achim
> >
> > 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
> >>
> >> yeah, a big +1 on the release :-)
> >>
> >>
> >> regards, Achim
> >>
> >> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> >>>
> >>> Yup, it would be great ;)
> >>>
> >>> Regards
> >>> JB
> >>>
> >>>
> >>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
> >>>>
> >>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
> >>>>>
> >>>>> By included, I thought about just refering Sling feature XML in
> >>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects
> >>>>> like
> >>>>> Camel, ActiveMQ, Cellar, etc).
> >>>>> In the Decanter feature XML, we can add <repository/> tag to Sling
> >>>>> feature XML.
> >>>>
> >>>>
> >>>> Then we only need a release, fine.
> >>>>
> >>>> Regards,
> >>>> O.
> >>>>
> >>>>> Regards
> >>>>> JB
> >>>>>
> >>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> >>>>>>
> >>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
> >>>>>>>
> >>>>>>> Good point, I think so. That's why it would make sense to provide
> >>>>>>> sling
> >>>>>>> feature repo in Karaf.
> >>>>>>
> >>>>>>
> >>>>>> ak, ok - included in Karaf. What options do we have? Copying the
> file,
> >>>>>> copying the feature, Maven dependency, moving from Sling to Karaf...
> >>>>>> what
> >>>>>> else?
> >>>>>>
> >>>>>> O.
> >>>>>>
> >>>>>>> Regards
> >>>>>>> JB
> >>>>>>>
> >>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> >>>>>>>>
> >>>>>>>> nice,
> >>>>>>>>
> >>>>>>>> @JB, do you think that scheduler can be used for Decanter?
> >>>>>>>>
> >>>>>>>> regards, Achim
> >>>>
> >>>>
> >>>
> >>> --
> >>> Jean-Baptiste Onofré
> >>> jbonofre@apache.org
> >>> http://blog.nanthrax.net
> >>> Talend - http://www.talend.com
> >>
> >>
> >>
> >>
> >> --
> >>
> >> Apache Member
> >> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> Committer &
> >> Project Lead
> >> blog <http://notizblog.nierbeck.de/>
> >> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >>
> >> Software Architect / Project Manager / Scrum Master
> >>
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Im having a hard time getting this to work, I've tried both with the
Karaf scheduler (blueprint) and the Sling scheduler (declarative
services) but none of them seems to pickup the jobs. Im using karaf
3.0.4 since I cant get 4.0 to work with pax exam.

I've been looking in source files of
https://github.com/apache/karaf/tree/master/scheduler/src/main but no
tests are available. My bundle does boot up but are never scheduled.

My job are here:
https://paste.apache.org/1dQi
Blueprint:
https://paste.apache.org/mmTV
Pax exam test:
https://paste.apache.org/gsaN

Any pointers are very much apreciated..


On Thu, Apr 23, 2015 at 10:39 PM, Achim Nierbeck
<bc...@googlemail.com> wrote:
> Ok, because of Decanter I did take a look at the current scheduler embedded
> in Karaf.
> It's much more sophisticated then I previously thought.
>
> First it's already Quarz based, second if you install it via the scheduler
> feature you have commands to
> 1/ list
> 2/ schedule
> 3/ unschedule
>
> Programmatically one can add a new scheduler via a Service
> (whiteboard-pattern)
>
> regards, Achim
>
> 2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:
>>
>> yeah, a big +1 on the release :-)
>>
>>
>> regards, Achim
>>
>> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>>>
>>> Yup, it would be great ;)
>>>
>>> Regards
>>> JB
>>>
>>>
>>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>>>
>>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>>>>>
>>>>> By included, I thought about just refering Sling feature XML in
>>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects
>>>>> like
>>>>> Camel, ActiveMQ, Cellar, etc).
>>>>> In the Decanter feature XML, we can add <repository/> tag to Sling
>>>>> feature XML.
>>>>
>>>>
>>>> Then we only need a release, fine.
>>>>
>>>> Regards,
>>>> O.
>>>>
>>>>> Regards
>>>>> JB
>>>>>
>>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>>>>
>>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>>>>>>>
>>>>>>> Good point, I think so. That's why it would make sense to provide
>>>>>>> sling
>>>>>>> feature repo in Karaf.
>>>>>>
>>>>>>
>>>>>> ak, ok - included in Karaf. What options do we have? Copying the file,
>>>>>> copying the feature, Maven dependency, moving from Sling to Karaf...
>>>>>> what
>>>>>> else?
>>>>>>
>>>>>> O.
>>>>>>
>>>>>>> Regards
>>>>>>> JB
>>>>>>>
>>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>>>>>
>>>>>>>> nice,
>>>>>>>>
>>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>>>>>>>>
>>>>>>>> regards, Achim
>>>>
>>>>
>>>
>>> --
>>> Jean-Baptiste Onofré
>>> jbonofre@apache.org
>>> http://blog.nanthrax.net
>>> Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
>> Project Lead
>> blog <http://notizblog.nierbeck.de/>
>> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
Ok, because of Decanter I did take a look at the current scheduler embedded
in Karaf.
It's much more sophisticated then I previously thought.

First it's already Quarz based, second if you install it via the scheduler
feature you have commands to
1/ list
2/ schedule
3/ unschedule

Programmatically one can add a new scheduler via a Service
(whiteboard-pattern)

regards, Achim

2015-04-23 8:40 GMT+02:00 Achim Nierbeck <bc...@googlemail.com>:

> yeah, a big +1 on the release :-)
>
>
> regards, Achim
>
> 2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
>
>> Yup, it would be great ;)
>>
>> Regards
>> JB
>>
>>
>> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>>
>>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>>>
>>>> By included, I thought about just refering Sling feature XML in
>>>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects like
>>>> Camel, ActiveMQ, Cellar, etc).
>>>> In the Decanter feature XML, we can add <repository/> tag to Sling
>>>> feature XML.
>>>>
>>>
>>> Then we only need a release, fine.
>>>
>>> Regards,
>>> O.
>>>
>>>  Regards
>>>> JB
>>>>
>>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>>
>>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>>>>>
>>>>>> Good point, I think so. That's why it would make sense to provide
>>>>>> sling
>>>>>> feature repo in Karaf.
>>>>>>
>>>>>
>>>>> ak, ok - included in Karaf. What options do we have? Copying the file,
>>>>> copying the feature, Maven dependency, moving from Sling to Karaf...
>>>>> what
>>>>> else?
>>>>>
>>>>> O.
>>>>>
>>>>>  Regards
>>>>>> JB
>>>>>>
>>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>>>
>>>>>>> nice,
>>>>>>>
>>>>>>> @JB, do you think that scheduler can be used for Decanter?
>>>>>>>
>>>>>>> regards, Achim
>>>>>>>
>>>>>>
>>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
yeah, a big +1 on the release :-)


regards, Achim

2015-04-23 8:06 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:

> Yup, it would be great ;)
>
> Regards
> JB
>
>
> On 04/23/2015 07:56 AM, Oliver Lietz wrote:
>
>> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>>
>>> By included, I thought about just refering Sling feature XML in
>>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects like
>>> Camel, ActiveMQ, Cellar, etc).
>>> In the Decanter feature XML, we can add <repository/> tag to Sling
>>> feature XML.
>>>
>>
>> Then we only need a release, fine.
>>
>> Regards,
>> O.
>>
>>  Regards
>>> JB
>>>
>>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>>
>>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>>>>
>>>>> Good point, I think so. That's why it would make sense to provide sling
>>>>> feature repo in Karaf.
>>>>>
>>>>
>>>> ak, ok - included in Karaf. What options do we have? Copying the file,
>>>> copying the feature, Maven dependency, moving from Sling to Karaf...
>>>> what
>>>> else?
>>>>
>>>> O.
>>>>
>>>>  Regards
>>>>> JB
>>>>>
>>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>>
>>>>>> nice,
>>>>>>
>>>>>> @JB, do you think that scheduler can be used for Decanter?
>>>>>>
>>>>>> regards, Achim
>>>>>>
>>>>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Yup, it would be great ;)

Regards
JB

On 04/23/2015 07:56 AM, Oliver Lietz wrote:
> On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
>> By included, I thought about just refering Sling feature XML in
>> etc/org.apache.karaf.features.repo.cfg (as we do for other projects like
>> Camel, ActiveMQ, Cellar, etc).
>> In the Decanter feature XML, we can add <repository/> tag to Sling
>> feature XML.
>
> Then we only need a release, fine.
>
> Regards,
> O.
>
>> Regards
>> JB
>>
>> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
>>> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>>>> Good point, I think so. That's why it would make sense to provide sling
>>>> feature repo in Karaf.
>>>
>>> ak, ok - included in Karaf. What options do we have? Copying the file,
>>> copying the feature, Maven dependency, moving from Sling to Karaf... what
>>> else?
>>>
>>> O.
>>>
>>>> Regards
>>>> JB
>>>>
>>>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>>>> nice,
>>>>>
>>>>> @JB, do you think that scheduler can be used for Decanter?
>>>>>
>>>>> regards, Achim
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Thursday 23 April 2015 07:36:02 Jean-Baptiste Onofré wrote:
> By included, I thought about just refering Sling feature XML in
> etc/org.apache.karaf.features.repo.cfg (as we do for other projects like
> Camel, ActiveMQ, Cellar, etc).
> In the Decanter feature XML, we can add <repository/> tag to Sling
> feature XML.

Then we only need a release, fine.

Regards,
O.

> Regards
> JB
> 
> On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> > On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
> >> Good point, I think so. That's why it would make sense to provide sling
> >> feature repo in Karaf.
> > 
> > ak, ok - included in Karaf. What options do we have? Copying the file,
> > copying the feature, Maven dependency, moving from Sling to Karaf... what
> > else?
> > 
> > O.
> > 
> >> Regards
> >> JB
> >> 
> >> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> >>> nice,
> >>> 
> >>> @JB, do you think that scheduler can be used for Decanter?
> >>> 
> >>> regards, Achim


Re: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
By included, I thought about just refering Sling feature XML in 
etc/org.apache.karaf.features.repo.cfg (as we do for other projects like 
Camel, ActiveMQ, Cellar, etc).
In the Decanter feature XML, we can add <repository/> tag to Sling 
feature XML.

Regards
JB

On 04/23/2015 07:22 AM, Oliver Lietz wrote:
> On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
>> Good point, I think so. That's why it would make sense to provide sling
>> feature repo in Karaf.
>
> ak, ok - included in Karaf. What options do we have? Copying the file, copying
> the feature, Maven dependency, moving from Sling to Karaf... what else?
>
> O.
>
>> Regards
>> JB
>>
>> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
>>> nice,
>>>
>>> @JB, do you think that scheduler can be used for Decanter?
>>>
>>> regards, Achim
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 22 April 2015 18:07:23 Jean-Baptiste Onofré wrote:
> Good point, I think so. That's why it would make sense to provide sling
> feature repo in Karaf.

ak, ok - included in Karaf. What options do we have? Copying the file, copying 
the feature, Maven dependency, moving from Sling to Karaf... what else?

O.

> Regards
> JB
> 
> On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> > nice,
> > 
> > @JB, do you think that scheduler can be used for Decanter?
> > 
> > regards, Achim


Re: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Good point, I think so. That's why it would make sense to provide sling 
feature repo in Karaf.

Regards
JB

On 04/22/2015 03:06 PM, Achim Nierbeck wrote:
> nice,
>
> @JB, do you think that scheduler can be used for Decanter?
>
> regards, Achim
>
>
> 2015-04-22 15:04 GMT+02:00 Oliver Lietz <apache@oliverlietz.de
> <ma...@oliverlietz.de>>:
>
>     On Wednesday 22 April 2015 14:49:11 Oliver Lietz wrote:
>     > On Wednesday 22 April 2015 13:52:13 nino martinez wael wrote:
>     > > yeah looks like what I need.
>     >
>     >https://issues.apache.org/jira/browse/SLING-4648
>     >
>     > feature:repo-add mvn:org.apache.sling/org.apache.sling.launchpad.karaf-
>     > features/0.1.1-SNAPSHOT/xml/features
>
>     you have to build yourself or configure Apache's Snapshots Repo before:
>     https://repository.apache.org/content/groups/snapshots/
>
>     O.
>
>      > feature:install sling-commons-scheduler
>      >
>      > Regards,
>      > O.
>      >
>      > > On Tue, Apr 21, 2015 at 10:15 PM, Michael Täschner
>      > >
>      > > <m.taeschner@gmail.com <ma...@gmail.com>> wrote:
>      > > > Hi,
>      > > >
>      > > > have a look at the scheduler of Apache Sling [1]. Using it
>     you just need
>      > > > to
>      > > > register a Runnable with service properties containing timer
>     or cron
>      > > > expression. Very straight forward and only one other Sling
>     dependency
>      > > > bundle required.
>      > > >
>      > > > Cheers,
>      > > > Michael
>      > > >
>      > > > [1]
>      > > >
>     https://sling.apache.org/documentation/bundles/scheduler-service-commons
>      > > > -s
>      > > > cheduler.html
>      > > >
>      > > > 2015-04-20 14:16 GMT+02:00 nino martinez wael
>      > > >
>      > > > <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>:
>      > > >> ok, i'll just roll with quartz then..
>      > > >>
>      > > >> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
>      > > >> <bcanhome@googlemail.com <ma...@googlemail.com>>
>      > > >>
>      > > >> wrote:
>      > > >> > Hi,
>      > > >> >
>      > > >> > as I stated it's either in the JIRA or in the Mailinglist :-)
>      > > >> > here's what I found in the mailinglist:
>      > > >> >
>     http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>      > > >> >
>      > > >> >
>      > > >> > regards, Achim
>      > > >> >
>      > > >> > P.S. I never said it should not be used ...
>      > > >> >
>      > > >> >
>      > > >> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>      > > >> >
>      > > >> > <nino.martinez.wael@gmail.com
>     <ma...@gmail.com>>:
>      > > >> >> Hmm I looked in JIRA but could only find this
>      > > >> >>
>      > > >> >>
>      > > >> >>
>     https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%2
>      > > >> >> 0K
>      > > >> >> ARAF
>      > > >> >>
>      > > >> >> Achim Nierbeck writes that it should be not used... So
>     i'll look
>      > > >> >> into
>      > > >> >> something else.
>      > > >> >>
>      > > >> >> regards Nino
>      > > >> >>
>      > > >> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
>      > > >> >> <jb@nanthrax.net <ma...@nanthrax.net>>
>      > > >> >>
>      > > >> >> wrote:
>      > > >> >> > Hi,
>      > > >> >> >
>      > > >> >> > good point, we should add the documentation related to the
>      > > >> >> > scheduler
>      > > >> >> > feature. By the way, Decanter provides a scheduler too,
>     it would
>      > > >> >> > make
>      > > >> >> > sense
>      > > >> >> > to leverage the core one in Decanter (and merge the
>     feature of the
>      > > >> >> > two).
>      > > >> >> >
>      > > >> >> > I'm creating the Jira about this.
>      > > >> >> >
>      > > >> >> > Regards
>      > > >> >> > JB
>      > > >> >> >
>      > > >> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>      > > >> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
>      > > >> >> >> information
>      > > >> >> >> about the scheduler feature.
>      > > >> >> >
>      > > >> >> > --
>      > > >> >> > Jean-Baptiste Onofré
>      > > >> >> > jbonofre@apache.org <ma...@apache.org>
>      > > >> >> > http://blog.nanthrax.net
>      > > >> >> > Talend - http://www.talend.com
>      > > >> >>
>      > > >> >> --
>      > > >> >> Best regards / Med venlig hilsen
>      > > >> >> Nino Martinez
>      > > >> >
>      > > >> > --
>      > > >> >
>      > > >> > Apache Member
>      > > >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>      > > >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>      > > >> > Committer
>      > > >> > &
>      > > >> > Project Lead
>      > > >> > blog <http://notizblog.nierbeck.de/>
>      > > >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>      > > >> >
>      > > >> > Software Architect / Project Manager / Scrum Master
>      > > >>
>      > > >> --
>      > > >> Best regards / Med venlig hilsen
>      > > >> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> & Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
nice,

@JB, do you think that scheduler can be used for Decanter?

regards, Achim


2015-04-22 15:04 GMT+02:00 Oliver Lietz <ap...@oliverlietz.de>:

> On Wednesday 22 April 2015 14:49:11 Oliver Lietz wrote:
> > On Wednesday 22 April 2015 13:52:13 nino martinez wael wrote:
> > > yeah looks like what I need.
> >
> > https://issues.apache.org/jira/browse/SLING-4648
> >
> > feature:repo-add mvn:org.apache.sling/org.apache.sling.launchpad.karaf-
> > features/0.1.1-SNAPSHOT/xml/features
>
> you have to build yourself or configure Apache's Snapshots Repo before:
> https://repository.apache.org/content/groups/snapshots/
>
> O.
>
> > feature:install sling-commons-scheduler
> >
> > Regards,
> > O.
> >
> > > On Tue, Apr 21, 2015 at 10:15 PM, Michael Täschner
> > >
> > > <m....@gmail.com> wrote:
> > > > Hi,
> > > >
> > > > have a look at the scheduler of Apache Sling [1]. Using it you just
> need
> > > > to
> > > > register a Runnable with service properties containing timer or cron
> > > > expression. Very straight forward and only one other Sling dependency
> > > > bundle required.
> > > >
> > > > Cheers,
> > > > Michael
> > > >
> > > > [1]
> > > >
> https://sling.apache.org/documentation/bundles/scheduler-service-commons
> > > > -s
> > > > cheduler.html
> > > >
> > > > 2015-04-20 14:16 GMT+02:00 nino martinez wael
> > > >
> > > > <ni...@gmail.com>:
> > > >> ok, i'll just roll with quartz then..
> > > >>
> > > >> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
> > > >> <bc...@googlemail.com>
> > > >>
> > > >> wrote:
> > > >> > Hi,
> > > >> >
> > > >> > as I stated it's either in the JIRA or in the Mailinglist :-)
> > > >> > here's what I found in the mailinglist:
> > > >> > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
> > > >> >
> > > >> >
> > > >> > regards, Achim
> > > >> >
> > > >> > P.S. I never said it should not be used ...
> > > >> >
> > > >> >
> > > >> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> > > >> >
> > > >> > <ni...@gmail.com>:
> > > >> >> Hmm I looked in JIRA but could only find this
> > > >> >>
> > > >> >>
> > > >> >>
> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%2
> > > >> >> 0K
> > > >> >> ARAF
> > > >> >>
> > > >> >> Achim Nierbeck writes that it should be not used... So i'll look
> > > >> >> into
> > > >> >> something else.
> > > >> >>
> > > >> >> regards Nino
> > > >> >>
> > > >> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> > > >> >> <jb...@nanthrax.net>
> > > >> >>
> > > >> >> wrote:
> > > >> >> > Hi,
> > > >> >> >
> > > >> >> > good point, we should add the documentation related to the
> > > >> >> > scheduler
> > > >> >> > feature. By the way, Decanter provides a scheduler too, it
> would
> > > >> >> > make
> > > >> >> > sense
> > > >> >> > to leverage the core one in Decanter (and merge the feature of
> the
> > > >> >> > two).
> > > >> >> >
> > > >> >> > I'm creating the Jira about this.
> > > >> >> >
> > > >> >> > Regards
> > > >> >> > JB
> > > >> >> >
> > > >> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> > > >> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> > > >> >> >> information
> > > >> >> >> about the scheduler feature.
> > > >> >> >
> > > >> >> > --
> > > >> >> > Jean-Baptiste Onofré
> > > >> >> > jbonofre@apache.org
> > > >> >> > http://blog.nanthrax.net
> > > >> >> > Talend - http://www.talend.com
> > > >> >>
> > > >> >> --
> > > >> >> Best regards / Med venlig hilsen
> > > >> >> Nino Martinez
> > > >> >
> > > >> > --
> > > >> >
> > > >> > Apache Member
> > > >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > > >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > > >> > Committer
> > > >> > &
> > > >> > Project Lead
> > > >> > blog <http://notizblog.nierbeck.de/>
> > > >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> > > >> >
> > > >> > Software Architect / Project Manager / Scrum Master
> > > >>
> > > >> --
> > > >> Best regards / Med venlig hilsen
> > > >> Nino Martinez
>
>


-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 22 April 2015 14:49:11 Oliver Lietz wrote:
> On Wednesday 22 April 2015 13:52:13 nino martinez wael wrote:
> > yeah looks like what I need.
> 
> https://issues.apache.org/jira/browse/SLING-4648
> 
> feature:repo-add mvn:org.apache.sling/org.apache.sling.launchpad.karaf-
> features/0.1.1-SNAPSHOT/xml/features

you have to build yourself or configure Apache's Snapshots Repo before:
https://repository.apache.org/content/groups/snapshots/

O.

> feature:install sling-commons-scheduler
> 
> Regards,
> O.
> 
> > On Tue, Apr 21, 2015 at 10:15 PM, Michael Täschner
> > 
> > <m....@gmail.com> wrote:
> > > Hi,
> > > 
> > > have a look at the scheduler of Apache Sling [1]. Using it you just need
> > > to
> > > register a Runnable with service properties containing timer or cron
> > > expression. Very straight forward and only one other Sling dependency
> > > bundle required.
> > > 
> > > Cheers,
> > > Michael
> > > 
> > > [1]
> > > https://sling.apache.org/documentation/bundles/scheduler-service-commons
> > > -s
> > > cheduler.html
> > > 
> > > 2015-04-20 14:16 GMT+02:00 nino martinez wael
> > > 
> > > <ni...@gmail.com>:
> > >> ok, i'll just roll with quartz then..
> > >> 
> > >> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
> > >> <bc...@googlemail.com>
> > >> 
> > >> wrote:
> > >> > Hi,
> > >> > 
> > >> > as I stated it's either in the JIRA or in the Mailinglist :-)
> > >> > here's what I found in the mailinglist:
> > >> > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
> > >> > 
> > >> > 
> > >> > regards, Achim
> > >> > 
> > >> > P.S. I never said it should not be used ...
> > >> > 
> > >> > 
> > >> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> > >> > 
> > >> > <ni...@gmail.com>:
> > >> >> Hmm I looked in JIRA but could only find this
> > >> >> 
> > >> >> 
> > >> >> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%2
> > >> >> 0K
> > >> >> ARAF
> > >> >> 
> > >> >> Achim Nierbeck writes that it should be not used... So i'll look
> > >> >> into
> > >> >> something else.
> > >> >> 
> > >> >> regards Nino
> > >> >> 
> > >> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> > >> >> <jb...@nanthrax.net>
> > >> >> 
> > >> >> wrote:
> > >> >> > Hi,
> > >> >> > 
> > >> >> > good point, we should add the documentation related to the
> > >> >> > scheduler
> > >> >> > feature. By the way, Decanter provides a scheduler too, it would
> > >> >> > make
> > >> >> > sense
> > >> >> > to leverage the core one in Decanter (and merge the feature of the
> > >> >> > two).
> > >> >> > 
> > >> >> > I'm creating the Jira about this.
> > >> >> > 
> > >> >> > Regards
> > >> >> > JB
> > >> >> > 
> > >> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> > >> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> > >> >> >> information
> > >> >> >> about the scheduler feature.
> > >> >> > 
> > >> >> > --
> > >> >> > Jean-Baptiste Onofré
> > >> >> > jbonofre@apache.org
> > >> >> > http://blog.nanthrax.net
> > >> >> > Talend - http://www.talend.com
> > >> >> 
> > >> >> --
> > >> >> Best regards / Med venlig hilsen
> > >> >> Nino Martinez
> > >> > 
> > >> > --
> > >> > 
> > >> > Apache Member
> > >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> > >> > Committer
> > >> > &
> > >> > Project Lead
> > >> > blog <http://notizblog.nierbeck.de/>
> > >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> > >> > 
> > >> > Software Architect / Project Manager / Scrum Master
> > >> 
> > >> --
> > >> Best regards / Med venlig hilsen
> > >> Nino Martinez


Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 22 April 2015 13:52:13 nino martinez wael wrote:
> yeah looks like what I need.

https://issues.apache.org/jira/browse/SLING-4648

feature:repo-add mvn:org.apache.sling/org.apache.sling.launchpad.karaf-
features/0.1.1-SNAPSHOT/xml/features

feature:install sling-commons-scheduler

Regards,
O.

> On Tue, Apr 21, 2015 at 10:15 PM, Michael Täschner
> 
> <m....@gmail.com> wrote:
> > Hi,
> > 
> > have a look at the scheduler of Apache Sling [1]. Using it you just need
> > to
> > register a Runnable with service properties containing timer or cron
> > expression. Very straight forward and only one other Sling dependency
> > bundle required.
> > 
> > Cheers,
> > Michael
> > 
> > [1]
> > https://sling.apache.org/documentation/bundles/scheduler-service-commons-s
> > cheduler.html
> > 
> > 2015-04-20 14:16 GMT+02:00 nino martinez wael
> > 
> > <ni...@gmail.com>:
> >> ok, i'll just roll with quartz then..
> >> 
> >> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck <bc...@googlemail.com>
> >> 
> >> wrote:
> >> > Hi,
> >> > 
> >> > as I stated it's either in the JIRA or in the Mailinglist :-)
> >> > here's what I found in the mailinglist:
> >> > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
> >> > 
> >> > 
> >> > regards, Achim
> >> > 
> >> > P.S. I never said it should not be used ...
> >> > 
> >> > 
> >> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> >> > 
> >> > <ni...@gmail.com>:
> >> >> Hmm I looked in JIRA but could only find this
> >> >> 
> >> >> 
> >> >> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K
> >> >> ARAF
> >> >> 
> >> >> Achim Nierbeck writes that it should be not used... So i'll look into
> >> >> something else.
> >> >> 
> >> >> regards Nino
> >> >> 
> >> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> >> >> <jb...@nanthrax.net>
> >> >> 
> >> >> wrote:
> >> >> > Hi,
> >> >> > 
> >> >> > good point, we should add the documentation related to the scheduler
> >> >> > feature. By the way, Decanter provides a scheduler too, it would
> >> >> > make
> >> >> > sense
> >> >> > to leverage the core one in Decanter (and merge the feature of the
> >> >> > two).
> >> >> > 
> >> >> > I'm creating the Jira about this.
> >> >> > 
> >> >> > Regards
> >> >> > JB
> >> >> > 
> >> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> >> >> >> information
> >> >> >> about the scheduler feature.
> >> >> > 
> >> >> > --
> >> >> > Jean-Baptiste Onofré
> >> >> > jbonofre@apache.org
> >> >> > http://blog.nanthrax.net
> >> >> > Talend - http://www.talend.com
> >> >> 
> >> >> --
> >> >> Best regards / Med venlig hilsen
> >> >> Nino Martinez
> >> > 
> >> > --
> >> > 
> >> > Apache Member
> >> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> >> > &
> >> > Project Lead
> >> > blog <http://notizblog.nierbeck.de/>
> >> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >> > 
> >> > Software Architect / Project Manager / Scrum Master
> >> 
> >> --
> >> Best regards / Med venlig hilsen
> >> Nino Martinez



Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 22 April 2015 10:24:11 Jean-Baptiste Onofré wrote:
> Thanks Olivier.

hello Jean-Baptiste,

> It would be great that Sling provides a features XML that we can
> reference in etc/org.apache.karaf.features.repos.cfg.
> 
> Like this, users would be able to do:
> 
> feature:repo-add sling
> 
> and after:
> 
> feature:install sling-scheduler

that is already possible with the current SNAPSHOT and existing features.

_correct_ link to Launchpad Karaf on GitHub:
https://github.com/apache/sling/tree/trunk/contrib/launchpad/karaf

> (and maybe other features).
> 
> Can I help on this ?

Sure, have a look and let me know if the features can be improved. Any 
feedback welcome.

Before doing an initial release I would like to finish the Oak features, 
remove all other SNAPSHOTS and see it running on Karaf 4.

Regards,
O.

> Regards
> JB
> 
> On 04/22/2015 10:16 AM, Oliver Lietz wrote:
> > On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
> >> Hi Michael,
> > 
> > Hi,
> > 
> >> interesting indeed. We can just provide a scheduler feature leveraging
> >> it.
> >> I will create a Jira about that.
> > 
> > I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the
> > feature "sling" [0]. If others are interested in Sling's Commons, we can
> > move them to dedicated features. Please open an issue at Sling for
> > Launchpad Karaf Features.
> > 
> > Regards,
> > O.
> > 
> > [0]
> > https://github.com/sling-git/org.apache.sling.launchpad.karaf-features/bl
> > ob/master/src/main/feature/feature.xml> 
> >> Regards
> >> JB
> >> 
> >> On 04/21/2015 10:15 PM, Michael Täschner wrote:
> >>> Hi,
> >>> 
> >>> have a look at the scheduler of Apache Sling [1]. Using it you just need
> >>> to register a Runnable with service properties containing timer or cron
> >>> expression. Very straight forward and only one other Sling dependency
> >>> bundle required.
> >>> 
> >>> Cheers,
> >>> Michael
> >>> 
> >>> [1]
> >>> https://sling.apache.org/documentation/bundles/scheduler-service-commons
> >>> -s
> >>> cheduler.html
> >>> 
> >>> 2015-04-20 14:16 GMT+02:00 nino martinez wael
> >>> 
> >>> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
> >>>      ok, i'll just roll with quartz then..
> >>>      
> >>>      On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
> >>>      
> >>>      <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
> >>>       > Hi,
> >>>       > 
> >>>       > as I stated it's either in the JIRA or in the Mailinglist :-)
> >>>       > here's what I found in the mailinglist:
> >>>       > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.htm
> >>>       > l
> >>>       > 
> >>>       > 
> >>>       > regards, Achim
> >>>       > 
> >>>       > P.S. I never said it should not be used ...
> >>>       > 
> >>>       > 
> >>>       > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> >>>       > 
> >>>       > <nino.martinez.wael@gmail.com
> > 
> > <ma...@gmail.com>>:
> >>>       >> Hmm I looked in JIRA but could only find this
> >>>      
> >>>      https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%
> >>>      20K
> >>>      ARAF
> >>>      
> >>>       >> Achim Nierbeck writes that it should be not used... So i'll
> >>>       >> look
> >>>      
> >>>      into
> >>>      
> >>>       >> something else.
> >>>       >> 
> >>>       >> regards Nino
> >>>       >> 
> >>>       >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> >>>      
> >>>      <jb@nanthrax.net <ma...@nanthrax.net>>
> >>>      
> >>>       >> wrote:
> >>>       >> > Hi,
> >>>       >> > 
> >>>       >> > good point, we should add the documentation related to the
> >>>      
> >>>      scheduler
> >>>      
> >>>       >> > feature. By the way, Decanter provides a scheduler too, it
> >>>      
> >>>      would make
> >>>      
> >>>       >> > sense
> >>>       >> > to leverage the core one in Decanter (and merge the feature
> >>>       >> > of
> >>>      
> >>>      the two).
> >>>      
> >>>       >> > I'm creating the Jira about this.
> >>>       >> > 
> >>>       >> > Regards
> >>>       >> > JB
> >>>       >> > 
> >>>       >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >>>       >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> >>>      
> >>>      information
> >>>      
> >>>       >> >> about the scheduler feature.
> >>>       >> > 
> >>>       >> > --
> >>>       >> > Jean-Baptiste Onofré
> >>>       >> > jbonofre@apache.org <ma...@apache.org>
> >>>       >> > http://blog.nanthrax.net
> >>>       >> > Talend - http://www.talend.com
> >>>       >> 
> >>>       >> --
> >>>       >> Best regards / Med venlig hilsen
> >>>       >> Nino Martinez
> >>>       > 
> >>>       > --
> >>>       > 
> >>>       > Apache Member
> >>>       > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >>>       > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >>>      
> >>>      Committer &
> >>>      
> >>>       > Project Lead
> >>>       > blog <http://notizblog.nierbeck.de/>
> >>>       > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >>>       > 
> >>>       > Software Architect / Project Manager / Scrum Master
> >>>      
> >>>      --
> >>>      Best regards / Med venlig hilsen
> >>>      Nino Martinez



Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Wednesday 22 April 2015 08:27:42 Roedl Lukas wrote:
> Hi!

hello,

> Some time ago I already worked on implementing Apache Sling Scheduler in
> Karaf (see https://issues.apache.org/jira/browse/KARAF-751).
 The patches
> also were merged into trunk in the end, but don't remember which version it
> was... 
> Back then one problem was that the Sling scheduler itself had Sling internal
> dependencies and so parts of the code where copied.
 If there is a solution
> to use Sling scheduler as a dependency now that would be much better. 

the dependencies on other Sling parts should be optional - otherwise it's a 
bug and should be fixed.

Regards,
O.

> best,
> Lukas
> 
> -----Ursprüngliche Nachricht-----
> Von: Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
> Gesendet: Mittwoch, 22. April 2015 10:25
> An: user@karaf.apache.org
> Betreff: Re: Scheduler feature
> 
> Thanks Olivier.
> 
> It would be great that Sling provides a features XML that we can reference
> in etc/org.apache.karaf.features.repos.cfg.
 
> Like this, users would be able to do:
> 
> feature:repo-add sling
> 
> and after:
> 
> feature:install sling-scheduler
> 
> (and maybe other features).
> 
> Can I help on this ?
> 
> Regards
> JB
> 
> On 04/22/2015 10:16 AM, Oliver Lietz wrote:
> 
> > On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
> > 
> >> Hi Michael,
> >
> >
> >
> > Hi,
> >
> >
> >
> >> interesting indeed. We can just provide a scheduler feature leveraging
> >> it.
> >> I will create a Jira about that.
> >
> >
> >
> > I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the 
> > feature "sling" [0]. If others are interested in Sling's Commons, we 
> > can move them to dedicated features. Please open an issue at Sling for 
> > Launchpad Karaf Features.
> >
> >
> >
> > Regards,
> > O.
> >
> >
> >
> > [0] 
> > https://github.com/sling-git/org.apache.sling.launchpad.karaf-features
> > /blob/master/src/main/feature/feature.xml
> >
> >
> >
> >> Regards
> >> JB
> >>
> >>
> >>
> >> On 04/21/2015 10:15 PM, Michael Täschner wrote:
> >> 
> >>> Hi,
> >>>
> >>>
> >>>
> >>> have a look at the scheduler of Apache Sling [1]. Using it you just 
> >>> need to register a Runnable with service properties containing timer 
> >>> or cron expression. Very straight forward and only one other Sling 
> >>> dependency bundle required.
> >>>
> >>>
> >>>
> >>> Cheers,
> >>> Michael
> >>>
> >>>
> >>>
> >>> [1]
> >>> https://sling.apache.org/documentation/bundles/scheduler-service-com
> >>> mons-s
> >>> cheduler.html
> >>>
> >>>
> >>>
> >>> 2015-04-20 14:16 GMT+02:00 nino martinez wael
> >>>
> >>>
> >>>
> >>> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
> >>> 
> >>>      ok, i'll just roll with quartz then..
> >>>
> >>>
> >>>
> >>>      On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
> >>>
> >>>
> >>>
> >>>      <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
> >>>      
> >>>       > Hi,
> >>>       >
> >>>       >
> >>>       >
> >>>       > as I stated it's either in the JIRA or in the Mailinglist :-)
> >>>       > here's what I found in the mailinglist:
> >>>       > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.htm
> >>>       > l
> >>>       >
> >>>       >
> >>>       >
> >>>       >
> >>>       > regards, Achim
> >>>       >
> >>>       >
> >>>       >
> >>>       > P.S. I never said it should not be used ...
> >>>       >
> >>>       >
> >>>       >
> >>>       >
> >>>       > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> >>>       >
> >>>       >
> >>>       >
> >>>       > <nino.martinez.wael@gmail.com
> > 
> > <ma...@gmail.com>>:
> > 
> >>>       >> Hmm I looked in JIRA but could only find this
> >>>
> >>>
> >>>
> >>>      https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%
> >>>      20K
> >>>      ARAF
> >>>
> >>>
> >>>
> >>>       >> Achim Nierbeck writes that it should be not used... So i'll 
> >>> 
> >>> look
> >>>
> >>>
> >>>
> >>>      into
> >>>
> >>>
> >>>
> >>>       >> something else.
> >>>       >>
> >>>       >>
> >>>       >>
> >>>       >> regards Nino
> >>>       >>
> >>>       >>
> >>>       >>
> >>>       >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> >>>
> >>>
> >>>
> >>>      <jb@nanthrax.net <ma...@nanthrax.net>>
> >>>
> >>>
> >>>
> >>>       >> wrote:
> >>>       >> 
> >>>       >> > Hi,
> >>>       >> >
> >>>       >> >
> >>>       >> >
> >>>       >> > good point, we should add the documentation related to 
> >>> 
> >>> the
> >>>
> >>>
> >>>
> >>>      scheduler
> >>>
> >>>
> >>>
> >>>       >> > feature. By the way, Decanter provides a scheduler too, 
> >>> 
> >>> it
> >>>
> >>>
> >>>
> >>>      would make
> >>>
> >>>
> >>>
> >>>       >> > sense
> >>>       >> > to leverage the core one in Decanter (and merge the 
> >>> 
> >>> feature of
> >>>
> >>>
> >>>
> >>>      the two).
> >>>
> >>>
> >>>
> >>>       >> > I'm creating the Jira about this.
> >>>       >> >
> >>>       >> >
> >>>       >> >
> >>>       >> > Regards
> >>>       >> > JB
> >>>       >> >
> >>>       >> >
> >>>       >> >
> >>>       >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >>>       >> > 
> >>>       >> >> Hi I've started using OSGI and Karaf. I can't seem to 
> >>> 
> >>> find
> >>>
> >>>
> >>>
> >>>      information
> >>>
> >>>
> >>>
> >>>       >> >> about the scheduler feature.
> >>>       >> >
> >>>       >> >
> >>>       >> >
> >>>       >> > --
> >>>       >> > Jean-Baptiste Onofré
> >>>       >> > jbonofre@apache.org <ma...@apache.org>
> >>>       >> > http://blog.nanthrax.net
> >>>       >> > Talend - http://www.talend.com
> >>>       >>
> >>>       >>
> >>>       >>
> >>>       >> --
> >>>       >> Best regards / Med venlig hilsen
> >>>       >> Nino Martinez
> >>>       >
> >>>       >
> >>>       >
> >>>       > --
> >>>       >
> >>>       >
> >>>       >
> >>>       > Apache Member
> >>>       > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >>>       > OPS4J Pax Web 
> >>> 
> >>> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >>>
> >>>
> >>>
> >>>      Committer &
> >>>
> >>>
> >>>
> >>>       > Project Lead
> >>>       > blog <http://notizblog.nierbeck.de/>
> >>>       > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >>>       >
> >>>       >
> >>>       >
> >>>       > Software Architect / Project Manager / Scrum Master
> >>>
> >>>
> >>>
> >>>      --
> >>>      Best regards / Med venlig hilsen
> >>>      Nino Martinez
> >
> >
> >
> 
> 
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



Re: AW: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It definitely makes sense.

I will take a look later today.

Regards
JB

On 04/22/2015 10:27 AM, Roedl Lukas wrote:
> Hi!
>
> Some time ago I already worked on implementing Apache Sling Scheduler in Karaf (see https://issues.apache.org/jira/browse/KARAF-751).
> The patches also were merged into trunk in the end, but don't remember which version it was...
>
> Back then one problem was that the Sling scheduler itself had Sling internal dependencies and so parts of the code where copied.
> If there is a solution to use Sling scheduler as a dependency now that would be much better.
>
> best,
> Lukas
>
> -----Ursprüngliche Nachricht-----
> Von: Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Gesendet: Mittwoch, 22. April 2015 10:25
> An: user@karaf.apache.org
> Betreff: Re: Scheduler feature
>
> Thanks Olivier.
>
> It would be great that Sling provides a features XML that we can reference in etc/org.apache.karaf.features.repos.cfg.
>
> Like this, users would be able to do:
>
> feature:repo-add sling
>
> and after:
>
> feature:install sling-scheduler
>
> (and maybe other features).
>
> Can I help on this ?
>
> Regards
> JB
>
> On 04/22/2015 10:16 AM, Oliver Lietz wrote:
>> On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
>>> Hi Michael,
>>
>> Hi,
>>
>>> interesting indeed. We can just provide a scheduler feature leveraging it.
>>> I will create a Jira about that.
>>
>> I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the
>> feature "sling" [0]. If others are interested in Sling's Commons, we
>> can move them to dedicated features. Please open an issue at Sling for
>> Launchpad Karaf Features.
>>
>> Regards,
>> O.
>>
>> [0]
>> https://github.com/sling-git/org.apache.sling.launchpad.karaf-features
>> /blob/master/src/main/feature/feature.xml
>>
>>> Regards
>>> JB
>>>
>>> On 04/21/2015 10:15 PM, Michael Täschner wrote:
>>>> Hi,
>>>>
>>>> have a look at the scheduler of Apache Sling [1]. Using it you just
>>>> need to register a Runnable with service properties containing timer
>>>> or cron expression. Very straight forward and only one other Sling
>>>> dependency bundle required.
>>>>
>>>> Cheers,
>>>> Michael
>>>>
>>>> [1]
>>>> https://sling.apache.org/documentation/bundles/scheduler-service-com
>>>> mons-s
>>>> cheduler.html
>>>>
>>>> 2015-04-20 14:16 GMT+02:00 nino martinez wael
>>>>
>>>> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
>>>>       ok, i'll just roll with quartz then..
>>>>
>>>>       On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
>>>>
>>>>       <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
>>>>        > Hi,
>>>>        >
>>>>        > as I stated it's either in the JIRA or in the Mailinglist :-)
>>>>        > here's what I found in the mailinglist:
>>>>        > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>>>>        >
>>>>        >
>>>>        > regards, Achim
>>>>        >
>>>>        > P.S. I never said it should not be used ...
>>>>        >
>>>>        >
>>>>        > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>>>>        >
>>>>        > <nino.martinez.wael@gmail.com
>> <ma...@gmail.com>>:
>>>>        >> Hmm I looked in JIRA but could only find this
>>>>
>>>>       https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K
>>>>       ARAF
>>>>
>>>>        >> Achim Nierbeck writes that it should be not used... So i'll
>>>> look
>>>>
>>>>       into
>>>>
>>>>        >> something else.
>>>>        >>
>>>>        >> regards Nino
>>>>        >>
>>>>        >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
>>>>
>>>>       <jb@nanthrax.net <ma...@nanthrax.net>>
>>>>
>>>>        >> wrote:
>>>>        >> > Hi,
>>>>        >> >
>>>>        >> > good point, we should add the documentation related to
>>>> the
>>>>
>>>>       scheduler
>>>>
>>>>        >> > feature. By the way, Decanter provides a scheduler too,
>>>> it
>>>>
>>>>       would make
>>>>
>>>>        >> > sense
>>>>        >> > to leverage the core one in Decanter (and merge the
>>>> feature of
>>>>
>>>>       the two).
>>>>
>>>>        >> > I'm creating the Jira about this.
>>>>        >> >
>>>>        >> > Regards
>>>>        >> > JB
>>>>        >> >
>>>>        >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>>>>        >> >> Hi I've started using OSGI and Karaf. I can't seem to
>>>> find
>>>>
>>>>       information
>>>>
>>>>        >> >> about the scheduler feature.
>>>>        >> >
>>>>        >> > --
>>>>        >> > Jean-Baptiste Onofré
>>>>        >> > jbonofre@apache.org <ma...@apache.org>
>>>>        >> > http://blog.nanthrax.net
>>>>        >> > Talend - http://www.talend.com
>>>>        >>
>>>>        >> --
>>>>        >> Best regards / Med venlig hilsen
>>>>        >> Nino Martinez
>>>>        >
>>>>        > --
>>>>        >
>>>>        > Apache Member
>>>>        > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>>        > OPS4J Pax Web
>>>> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>>
>>>>       Committer &
>>>>
>>>>        > Project Lead
>>>>        > blog <http://notizblog.nierbeck.de/>
>>>>        > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>>        >
>>>>        > Software Architect / Project Manager / Scrum Master
>>>>
>>>>       --
>>>>       Best regards / Med venlig hilsen
>>>>       Nino Martinez
>>
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

AW: Scheduler feature

Posted by Roedl Lukas <Lu...@ait.ac.at>.
Hi!

Some time ago I already worked on implementing Apache Sling Scheduler in Karaf (see https://issues.apache.org/jira/browse/KARAF-751).
The patches also were merged into trunk in the end, but don't remember which version it was...

Back then one problem was that the Sling scheduler itself had Sling internal dependencies and so parts of the code where copied.
If there is a solution to use Sling scheduler as a dependency now that would be much better.

best,
Lukas

-----Ursprüngliche Nachricht-----
Von: Jean-Baptiste Onofré [mailto:jb@nanthrax.net] 
Gesendet: Mittwoch, 22. April 2015 10:25
An: user@karaf.apache.org
Betreff: Re: Scheduler feature

Thanks Olivier.

It would be great that Sling provides a features XML that we can reference in etc/org.apache.karaf.features.repos.cfg.

Like this, users would be able to do:

feature:repo-add sling

and after:

feature:install sling-scheduler

(and maybe other features).

Can I help on this ?

Regards
JB

On 04/22/2015 10:16 AM, Oliver Lietz wrote:
> On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
>> Hi Michael,
>
> Hi,
>
>> interesting indeed. We can just provide a scheduler feature leveraging it.
>> I will create a Jira about that.
>
> I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the 
> feature "sling" [0]. If others are interested in Sling's Commons, we 
> can move them to dedicated features. Please open an issue at Sling for 
> Launchpad Karaf Features.
>
> Regards,
> O.
>
> [0] 
> https://github.com/sling-git/org.apache.sling.launchpad.karaf-features
> /blob/master/src/main/feature/feature.xml
>
>> Regards
>> JB
>>
>> On 04/21/2015 10:15 PM, Michael Täschner wrote:
>>> Hi,
>>>
>>> have a look at the scheduler of Apache Sling [1]. Using it you just 
>>> need to register a Runnable with service properties containing timer 
>>> or cron expression. Very straight forward and only one other Sling 
>>> dependency bundle required.
>>>
>>> Cheers,
>>> Michael
>>>
>>> [1]
>>> https://sling.apache.org/documentation/bundles/scheduler-service-com
>>> mons-s
>>> cheduler.html
>>>
>>> 2015-04-20 14:16 GMT+02:00 nino martinez wael
>>>
>>> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
>>>      ok, i'll just roll with quartz then..
>>>
>>>      On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
>>>
>>>      <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
>>>       > Hi,
>>>       >
>>>       > as I stated it's either in the JIRA or in the Mailinglist :-)
>>>       > here's what I found in the mailinglist:
>>>       > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>>>       >
>>>       >
>>>       > regards, Achim
>>>       >
>>>       > P.S. I never said it should not be used ...
>>>       >
>>>       >
>>>       > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>>>       >
>>>       > <nino.martinez.wael@gmail.com
> <ma...@gmail.com>>:
>>>       >> Hmm I looked in JIRA but could only find this
>>>
>>>      https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K
>>>      ARAF
>>>
>>>       >> Achim Nierbeck writes that it should be not used... So i'll 
>>> look
>>>
>>>      into
>>>
>>>       >> something else.
>>>       >>
>>>       >> regards Nino
>>>       >>
>>>       >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
>>>
>>>      <jb@nanthrax.net <ma...@nanthrax.net>>
>>>
>>>       >> wrote:
>>>       >> > Hi,
>>>       >> >
>>>       >> > good point, we should add the documentation related to 
>>> the
>>>
>>>      scheduler
>>>
>>>       >> > feature. By the way, Decanter provides a scheduler too, 
>>> it
>>>
>>>      would make
>>>
>>>       >> > sense
>>>       >> > to leverage the core one in Decanter (and merge the 
>>> feature of
>>>
>>>      the two).
>>>
>>>       >> > I'm creating the Jira about this.
>>>       >> >
>>>       >> > Regards
>>>       >> > JB
>>>       >> >
>>>       >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>>>       >> >> Hi I've started using OSGI and Karaf. I can't seem to 
>>> find
>>>
>>>      information
>>>
>>>       >> >> about the scheduler feature.
>>>       >> >
>>>       >> > --
>>>       >> > Jean-Baptiste Onofré
>>>       >> > jbonofre@apache.org <ma...@apache.org>
>>>       >> > http://blog.nanthrax.net
>>>       >> > Talend - http://www.talend.com
>>>       >>
>>>       >> --
>>>       >> Best regards / Med venlig hilsen
>>>       >> Nino Martinez
>>>       >
>>>       > --
>>>       >
>>>       > Apache Member
>>>       > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>       > OPS4J Pax Web 
>>> <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>
>>>      Committer &
>>>
>>>       > Project Lead
>>>       > blog <http://notizblog.nierbeck.de/>
>>>       > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>       >
>>>       > Software Architect / Project Manager / Scrum Master
>>>
>>>      --
>>>      Best regards / Med venlig hilsen
>>>      Nino Martinez
>
>

--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Thanks Olivier.

It would be great that Sling provides a features XML that we can 
reference in etc/org.apache.karaf.features.repos.cfg.

Like this, users would be able to do:

feature:repo-add sling

and after:

feature:install sling-scheduler

(and maybe other features).

Can I help on this ?

Regards
JB

On 04/22/2015 10:16 AM, Oliver Lietz wrote:
> On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
>> Hi Michael,
>
> Hi,
>
>> interesting indeed. We can just provide a scheduler feature leveraging it.
>> I will create a Jira about that.
>
> I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the feature
> "sling" [0]. If others are interested in Sling's Commons, we can move them to
> dedicated features. Please open an issue at Sling for Launchpad Karaf
> Features.
>
> Regards,
> O.
>
> [0] https://github.com/sling-git/org.apache.sling.launchpad.karaf-features/blob/master/src/main/feature/feature.xml
>
>> Regards
>> JB
>>
>> On 04/21/2015 10:15 PM, Michael Täschner wrote:
>>> Hi,
>>>
>>> have a look at the scheduler of Apache Sling [1]. Using it you just need
>>> to register a Runnable with service properties containing timer or cron
>>> expression. Very straight forward and only one other Sling dependency
>>> bundle required.
>>>
>>> Cheers,
>>> Michael
>>>
>>> [1]
>>> https://sling.apache.org/documentation/bundles/scheduler-service-commons-s
>>> cheduler.html
>>>
>>> 2015-04-20 14:16 GMT+02:00 nino martinez wael
>>>
>>> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
>>>      ok, i'll just roll with quartz then..
>>>
>>>      On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
>>>
>>>      <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
>>>       > Hi,
>>>       >
>>>       > as I stated it's either in the JIRA or in the Mailinglist :-)
>>>       > here's what I found in the mailinglist:
>>>       > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>>>       >
>>>       >
>>>       > regards, Achim
>>>       >
>>>       > P.S. I never said it should not be used ...
>>>       >
>>>       >
>>>       > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>>>       >
>>>       > <nino.martinez.wael@gmail.com
> <ma...@gmail.com>>:
>>>       >> Hmm I looked in JIRA but could only find this
>>>
>>>      https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K
>>>      ARAF
>>>
>>>       >> Achim Nierbeck writes that it should be not used... So i'll look
>>>
>>>      into
>>>
>>>       >> something else.
>>>       >>
>>>       >> regards Nino
>>>       >>
>>>       >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
>>>
>>>      <jb@nanthrax.net <ma...@nanthrax.net>>
>>>
>>>       >> wrote:
>>>       >> > Hi,
>>>       >> >
>>>       >> > good point, we should add the documentation related to the
>>>
>>>      scheduler
>>>
>>>       >> > feature. By the way, Decanter provides a scheduler too, it
>>>
>>>      would make
>>>
>>>       >> > sense
>>>       >> > to leverage the core one in Decanter (and merge the feature of
>>>
>>>      the two).
>>>
>>>       >> > I'm creating the Jira about this.
>>>       >> >
>>>       >> > Regards
>>>       >> > JB
>>>       >> >
>>>       >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>>>       >> >> Hi I've started using OSGI and Karaf. I can't seem to find
>>>
>>>      information
>>>
>>>       >> >> about the scheduler feature.
>>>       >> >
>>>       >> > --
>>>       >> > Jean-Baptiste Onofré
>>>       >> > jbonofre@apache.org <ma...@apache.org>
>>>       >> > http://blog.nanthrax.net
>>>       >> > Talend - http://www.talend.com
>>>       >>
>>>       >> --
>>>       >> Best regards / Med venlig hilsen
>>>       >> Nino Martinez
>>>       >
>>>       > --
>>>       >
>>>       > Apache Member
>>>       > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>>>       > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>>>
>>>      Committer &
>>>
>>>       > Project Lead
>>>       > blog <http://notizblog.nierbeck.de/>
>>>       > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>>>       >
>>>       > Software Architect / Project Manager / Scrum Master
>>>
>>>      --
>>>      Best regards / Med venlig hilsen
>>>      Nino Martinez
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Tuesday 21 April 2015 22:18:54 Jean-Baptiste Onofré wrote:
> Hi Michael,

Hi,

> interesting indeed. We can just provide a scheduler feature leveraging it.
> I will create a Jira about that.

I'm the maintainer of Sling Launchpad Karaf. Scheduler is part of the feature 
"sling" [0]. If others are interested in Sling's Commons, we can move them to 
dedicated features. Please open an issue at Sling for Launchpad Karaf 
Features.

Regards,
O.

[0] https://github.com/sling-git/org.apache.sling.launchpad.karaf-features/blob/master/src/main/feature/feature.xml

> Regards
> JB
> 
> On 04/21/2015 10:15 PM, Michael Täschner wrote:
> > Hi,
> > 
> > have a look at the scheduler of Apache Sling [1]. Using it you just need
> > to register a Runnable with service properties containing timer or cron
> > expression. Very straight forward and only one other Sling dependency
> > bundle required.
> > 
> > Cheers,
> > Michael
> > 
> > [1]
> > https://sling.apache.org/documentation/bundles/scheduler-service-commons-s
> > cheduler.html
> > 
> > 2015-04-20 14:16 GMT+02:00 nino martinez wael
> > 
> > <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
> >     ok, i'll just roll with quartz then..
> >     
> >     On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
> >     
> >     <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
> >      > Hi,
> >      > 
> >      > as I stated it's either in the JIRA or in the Mailinglist :-)
> >      > here's what I found in the mailinglist:
> >      > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
> >      > 
> >      > 
> >      > regards, Achim
> >      > 
> >      > P.S. I never said it should not be used ...
> >      > 
> >      > 
> >      > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> >      > 
> >      > <nino.martinez.wael@gmail.com 
<ma...@gmail.com>>:
> >      >> Hmm I looked in JIRA but could only find this
> >     
> >     https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20K
> >     ARAF
> >     
> >      >> Achim Nierbeck writes that it should be not used... So i'll look
> >     
> >     into
> >     
> >      >> something else.
> >      >> 
> >      >> regards Nino
> >      >> 
> >      >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
> >     
> >     <jb@nanthrax.net <ma...@nanthrax.net>>
> >     
> >      >> wrote:
> >      >> > Hi,
> >      >> > 
> >      >> > good point, we should add the documentation related to the
> >     
> >     scheduler
> >     
> >      >> > feature. By the way, Decanter provides a scheduler too, it
> >     
> >     would make
> >     
> >      >> > sense
> >      >> > to leverage the core one in Decanter (and merge the feature of
> >     
> >     the two).
> >     
> >      >> > I'm creating the Jira about this.
> >      >> > 
> >      >> > Regards
> >      >> > JB
> >      >> > 
> >      >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >      >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> >     
> >     information
> >     
> >      >> >> about the scheduler feature.
> >      >> > 
> >      >> > --
> >      >> > Jean-Baptiste Onofré
> >      >> > jbonofre@apache.org <ma...@apache.org>
> >      >> > http://blog.nanthrax.net
> >      >> > Talend - http://www.talend.com
> >      >> 
> >      >> --
> >      >> Best regards / Med venlig hilsen
> >      >> Nino Martinez
> >      > 
> >      > --
> >      > 
> >      > Apache Member
> >      > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> >      > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
> >     
> >     Committer &
> >     
> >      > Project Lead
> >      > blog <http://notizblog.nierbeck.de/>
> >      > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >      > 
> >      > Software Architect / Project Manager / Scrum Master
> >     
> >     --
> >     Best regards / Med venlig hilsen
> >     Nino Martinez



Re: Scheduler feature

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Michael,

interesting indeed. We can just provide a scheduler feature leveraging it.
I will create a Jira about that.

Regards
JB

On 04/21/2015 10:15 PM, Michael Täschner wrote:
> Hi,
>
> have a look at the scheduler of Apache Sling [1]. Using it you just need
> to register a Runnable with service properties containing timer or cron
> expression. Very straight forward and only one other Sling dependency
> bundle required.
>
> Cheers,
> Michael
>
> [1]
> https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html
>
> 2015-04-20 14:16 GMT+02:00 nino martinez wael
> <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
>
>     ok, i'll just roll with quartz then..
>
>     On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck
>     <bcanhome@googlemail.com <ma...@googlemail.com>> wrote:
>      > Hi,
>      >
>      > as I stated it's either in the JIRA or in the Mailinglist :-)
>      > here's what I found in the mailinglist:
>      > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>      >
>      >
>      > regards, Achim
>      >
>      > P.S. I never said it should not be used ...
>      >
>      >
>      > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>      > <nino.martinez.wael@gmail.com <ma...@gmail.com>>:
>      >>
>      >> Hmm I looked in JIRA but could only find this
>      >>
>      >>
>     https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF
>      >>
>      >> Achim Nierbeck writes that it should be not used... So i'll look
>     into
>      >> something else.
>      >>
>      >> regards Nino
>      >>
>      >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré
>     <jb@nanthrax.net <ma...@nanthrax.net>>
>      >> wrote:
>      >> > Hi,
>      >> >
>      >> > good point, we should add the documentation related to the
>     scheduler
>      >> > feature. By the way, Decanter provides a scheduler too, it
>     would make
>      >> > sense
>      >> > to leverage the core one in Decanter (and merge the feature of
>     the two).
>      >> >
>      >> > I'm creating the Jira about this.
>      >> >
>      >> > Regards
>      >> > JB
>      >> >
>      >> >
>      >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>      >> >>
>      >> >> Hi I've started using OSGI and Karaf. I can't seem to find
>     information
>      >> >> about the scheduler feature.
>      >> >>
>      >> >
>      >> > --
>      >> > Jean-Baptiste Onofré
>      >> > jbonofre@apache.org <ma...@apache.org>
>      >> > http://blog.nanthrax.net
>      >> > Talend - http://www.talend.com
>      >>
>      >>
>      >>
>      >> --
>      >> Best regards / Med venlig hilsen
>      >> Nino Martinez
>      >
>      >
>      >
>      >
>      > --
>      >
>      > Apache Member
>      > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>      > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/>
>     Committer &
>      > Project Lead
>      > blog <http://notizblog.nierbeck.de/>
>      > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>      >
>      > Software Architect / Project Manager / Scrum Master
>      >
>
>
>
>     --
>     Best regards / Med venlig hilsen
>     Nino Martinez
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
yeah looks like what I need.

On Tue, Apr 21, 2015 at 10:15 PM, Michael Täschner
<m....@gmail.com> wrote:
> Hi,
>
> have a look at the scheduler of Apache Sling [1]. Using it you just need to
> register a Runnable with service properties containing timer or cron
> expression. Very straight forward and only one other Sling dependency bundle
> required.
>
> Cheers,
> Michael
>
> [1]
> https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html
>
> 2015-04-20 14:16 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> ok, i'll just roll with quartz then..
>>
>> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck <bc...@googlemail.com>
>> wrote:
>> > Hi,
>> >
>> > as I stated it's either in the JIRA or in the Mailinglist :-)
>> > here's what I found in the mailinglist:
>> > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>> >
>> >
>> > regards, Achim
>> >
>> > P.S. I never said it should not be used ...
>> >
>> >
>> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
>> > <ni...@gmail.com>:
>> >>
>> >> Hmm I looked in JIRA but could only find this
>> >>
>> >>
>> >> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF
>> >>
>> >> Achim Nierbeck writes that it should be not used... So i'll look into
>> >> something else.
>> >>
>> >> regards Nino
>> >>
>> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>> >> wrote:
>> >> > Hi,
>> >> >
>> >> > good point, we should add the documentation related to the scheduler
>> >> > feature. By the way, Decanter provides a scheduler too, it would make
>> >> > sense
>> >> > to leverage the core one in Decanter (and merge the feature of the
>> >> > two).
>> >> >
>> >> > I'm creating the Jira about this.
>> >> >
>> >> > Regards
>> >> > JB
>> >> >
>> >> >
>> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>> >> >>
>> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
>> >> >> information
>> >> >> about the scheduler feature.
>> >> >>
>> >> >
>> >> > --
>> >> > Jean-Baptiste Onofré
>> >> > jbonofre@apache.org
>> >> > http://blog.nanthrax.net
>> >> > Talend - http://www.talend.com
>> >>
>> >>
>> >>
>> >> --
>> >> Best regards / Med venlig hilsen
>> >> Nino Martinez
>> >
>> >
>> >
>> >
>> > --
>> >
>> > Apache Member
>> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> > &
>> > Project Lead
>> > blog <http://notizblog.nierbeck.de/>
>> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>> >
>> > Software Architect / Project Manager / Scrum Master
>> >
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Michael Täschner <m....@gmail.com>.
Hi,

have a look at the scheduler of Apache Sling [1]. Using it you just need to
register a Runnable with service properties containing timer or cron
expression. Very straight forward and only one other Sling dependency
bundle required.

Cheers,
Michael

[1]
https://sling.apache.org/documentation/bundles/scheduler-service-commons-scheduler.html

2015-04-20 14:16 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> ok, i'll just roll with quartz then..
>
> On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck <bc...@googlemail.com>
> wrote:
> > Hi,
> >
> > as I stated it's either in the JIRA or in the Mailinglist :-)
> > here's what I found in the mailinglist:
> > http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
> >
> >
> > regards, Achim
> >
> > P.S. I never said it should not be used ...
> >
> >
> > 2015-04-20 13:09 GMT+02:00 nino martinez wael
> > <ni...@gmail.com>:
> >>
> >> Hmm I looked in JIRA but could only find this
> >>
> >>
> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF
> >>
> >> Achim Nierbeck writes that it should be not used... So i'll look into
> >> something else.
> >>
> >> regards Nino
> >>
> >> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> >> wrote:
> >> > Hi,
> >> >
> >> > good point, we should add the documentation related to the scheduler
> >> > feature. By the way, Decanter provides a scheduler too, it would make
> >> > sense
> >> > to leverage the core one in Decanter (and merge the feature of the
> two).
> >> >
> >> > I'm creating the Jira about this.
> >> >
> >> > Regards
> >> > JB
> >> >
> >> >
> >> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >> >>
> >> >> Hi I've started using OSGI and Karaf. I can't seem to find
> information
> >> >> about the scheduler feature.
> >> >>
> >> >
> >> > --
> >> > Jean-Baptiste Onofré
> >> > jbonofre@apache.org
> >> > http://blog.nanthrax.net
> >> > Talend - http://www.talend.com
> >>
> >>
> >>
> >> --
> >> Best regards / Med venlig hilsen
> >> Nino Martinez
> >
> >
> >
> >
> > --
> >
> > Apache Member
> > Apache Karaf <http://karaf.apache.org/> Committer & PMC
> > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
> &
> > Project Lead
> > blog <http://notizblog.nierbeck.de/>
> > Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
> >
> > Software Architect / Project Manager / Scrum Master
> >
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
ok, i'll just roll with quartz then..

On Mon, Apr 20, 2015 at 1:15 PM, Achim Nierbeck <bc...@googlemail.com> wrote:
> Hi,
>
> as I stated it's either in the JIRA or in the Mailinglist :-)
> here's what I found in the mailinglist:
> http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html
>
>
> regards, Achim
>
> P.S. I never said it should not be used ...
>
>
> 2015-04-20 13:09 GMT+02:00 nino martinez wael
> <ni...@gmail.com>:
>>
>> Hmm I looked in JIRA but could only find this
>>
>> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF
>>
>> Achim Nierbeck writes that it should be not used... So i'll look into
>> something else.
>>
>> regards Nino
>>
>> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
>> wrote:
>> > Hi,
>> >
>> > good point, we should add the documentation related to the scheduler
>> > feature. By the way, Decanter provides a scheduler too, it would make
>> > sense
>> > to leverage the core one in Decanter (and merge the feature of the two).
>> >
>> > I'm creating the Jira about this.
>> >
>> > Regards
>> > JB
>> >
>> >
>> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
>> >>
>> >> Hi I've started using OSGI and Karaf. I can't seem to find information
>> >> about the scheduler feature.
>> >>
>> >
>> > --
>> > Jean-Baptiste Onofré
>> > jbonofre@apache.org
>> > http://blog.nanthrax.net
>> > Talend - http://www.talend.com
>>
>>
>>
>> --
>> Best regards / Med venlig hilsen
>> Nino Martinez
>
>
>
>
> --
>
> Apache Member
> Apache Karaf <http://karaf.apache.org/> Committer & PMC
> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
> Project Lead
> blog <http://notizblog.nierbeck.de/>
> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
>
> Software Architect / Project Manager / Scrum Master
>



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,

as I stated it's either in the JIRA or in the Mailinglist :-)
here's what I found in the mailinglist:
http://karaf.922171.n3.nabble.com/Scheduler-status-td4034750.html


regards, Achim

P.S. I never said it should not be used ...


2015-04-20 13:09 GMT+02:00 nino martinez wael <ni...@gmail.com>
:

> Hmm I looked in JIRA but could only find this
>
> https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF
>
> Achim Nierbeck writes that it should be not used... So i'll look into
> something else.
>
> regards Nino
>
> On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <jb...@nanthrax.net>
> wrote:
> > Hi,
> >
> > good point, we should add the documentation related to the scheduler
> > feature. By the way, Decanter provides a scheduler too, it would make
> sense
> > to leverage the core one in Decanter (and merge the feature of the two).
> >
> > I'm creating the Jira about this.
> >
> > Regards
> > JB
> >
> >
> > On 04/17/2015 01:08 PM, nino martinez wael wrote:
> >>
> >> Hi I've started using OSGI and Karaf. I can't seem to find information
> >> about the scheduler feature.
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
>
>
>
> --
> Best regards / Med venlig hilsen
> Nino Martinez
>



-- 

Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>

Software Architect / Project Manager / Scrum Master

Re: Scheduler feature

Posted by nino martinez wael <ni...@gmail.com>.
Hmm I looked in JIRA but could only find this

https://issues.apache.org/jira/browse/KARAF-3674?jql=project%20%3D%20KARAF

Achim Nierbeck writes that it should be not used... So i'll look into
something else.

regards Nino

On Fri, Apr 17, 2015 at 1:43 PM, Jean-Baptiste Onofré <jb...@nanthrax.net> wrote:
> Hi,
>
> good point, we should add the documentation related to the scheduler
> feature. By the way, Decanter provides a scheduler too, it would make sense
> to leverage the core one in Decanter (and merge the feature of the two).
>
> I'm creating the Jira about this.
>
> Regards
> JB
>
>
> On 04/17/2015 01:08 PM, nino martinez wael wrote:
>>
>> Hi I've started using OSGI and Karaf. I can't seem to find information
>> about the scheduler feature.
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com



-- 
Best regards / Med venlig hilsen
Nino Martinez

Re: Scheduler feature

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

good point, we should add the documentation related to the scheduler 
feature. By the way, Decanter provides a scheduler too, it would make 
sense to leverage the core one in Decanter (and merge the feature of the 
two).

I'm creating the Jira about this.

Regards
JB

On 04/17/2015 01:08 PM, nino martinez wael wrote:
> Hi I've started using OSGI and Karaf. I can't seem to find information
> about the scheduler feature.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com