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/08/12 08:34:52 UTC

Re: Scheduler feature

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 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