Leiste mit Community-Erfolgen erweitern.

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

Diese Konversation wurde aufgrund von Inaktivität geschlossen. Bitte erstellen Sie einen neuen Post.

GELÖST

Apache Sling Scheduler + OSGI annotations on 6.1

Avatar

Level 2
1 Akzeptierte Lösung

Avatar

Korrekte Antwort von
Level 10

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.

Lösung in ursprünglichem Beitrag anzeigen

2 Antworten

Avatar

Korrekte Antwort von
Level 10

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.

Avatar

Level 2

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