We are running 6.1.0.SP2-CFP4. Does anyone know if the Sling Scheduler supports the official OSGI annotations as in this example aem-osgi-annotation-demo/SampleOsgiScheduledTask.java at master · nateyolles/aem-osgi-annotation-dem... https://github.com/nateyolles/aem-osgi-annotation-demo/blob/master/core/src/main/java/com/nateyolles...?
Solved! Go to Solution.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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"?
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies