Apache Sling Scheduler + OSGI annotations on 6.1 | Community
Skip to main content
New Participant
October 24, 2017
Solved

Apache Sling Scheduler + OSGI annotations on 6.1

  • October 24, 2017
  • 2 replies
  • 1564 views
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by smacdonald2008

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

kristofvbAuthor
New Participant
October 24, 2017

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

smacdonald2008
smacdonald2008Accepted solution
New Participant
October 24, 2017

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.