Skip to main content
Level 2
Oct 24, 2017 10:24 AM UTC
Solved

Apache Sling Scheduler + OSGI annotations on 6.1

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 24, 2017 2:32 PM UTC

This should be supported if you setup the POM dependencies, etc. This Github project was build for AEM. There is no reason why these annotations would not work.

2 replies

smacdonald2008
smacdonald2008Accepted solution
Level 10
Oct 24, 2017 2:32 PM UTC

This should be supported if you setup the POM dependencies, etc. This Github project was build for AEM. There is no reason why these annotations would not work.

Translate
kristofvbAuthor
Level 2
Oct 24, 2017 6:30 PM UTC

Ok, it does work. My class has a configuration to configure property "scheduler.period". The mistake I made was that I had the following properties as part of the @Component annotation

"scheduler.concurrent=false",
"scheduler.immediate=true",
"scheduler.runOn=SINGLE"

So apparently you cannot spread scheduler properties between a config class and the Component annotation. But then how can you make those 3 properties private i.e. non-configurable while still have the ability to configure property "scheduler.period"?

Translate