When will support for Felix SCR annotations be removed? | Community
Skip to main content
Level 3
July 29, 2019
Solved

When will support for Felix SCR annotations be removed?

  • July 29, 2019
  • 2 replies
  • 4507 views

I have a bunch of legacy code that uses the deprecated Felix SCR annotations and I'm wondering how much longer they will be supported in core AEM. I've read the "Deprecated and Removed Features" docs for 6.4 & 6.5 and they don't mention anything about annotations. Does anyone have any thoughts or insights on this?

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 Himanshu_Singhal

As mentioned in the blog, the annotations are deprecated but will still be supported. There's no need to migrate existing code based on Felix annotations but it's better if you do so.

https://blog.osoco.de/2016/05/migrating-from-the-apache-felix-scr-annotations-to-the-osgi-declarative-services-annotatio…

2 replies

Himanshu_Singhal
Community Advisor
Himanshu_SinghalCommunity AdvisorAccepted solution
Community Advisor
July 30, 2019

As mentioned in the blog, the annotations are deprecated but will still be supported. There's no need to migrate existing code based on Felix annotations but it's better if you do so.

https://blog.osoco.de/2016/05/migrating-from-the-apache-felix-scr-annotations-to-the-osgi-declarative-services-annotatio…

rampai
Community Advisor
Community Advisor
July 30, 2019

Hi andyshreve​,

Although there is no mention of the support being removed totally anywhere, it has been stated in Apache Felix documentation that the SCR annotations are in maintenance mode. This means that no new features will be added and one can expect minimal to no support for issues.

Also as mentioned here, SCR annotations still work in AEM 6.4 but recommendation is to update any existing files using SCR to use DS annotations in an incremental manner whenever you happen to touch the files. The new archetypes in AEM also no longer mention SCR dependencies in the POM which is an indication of the things to come ahead.

Refer the following links for migrating to the new annotations:

Using OSGi R7 annotations in AEM - Experience Delivers

Official OSGi Declarative Services Annotations in AEM - Adobe Experience Manager | AEM/CQ | Apache Sling

https://blog.osoco.de/2016/05/migrating-from-the-apache-felix-scr-annotations-to-the-osgi-declarative-services-annotatio…

March 2, 2021

Hello

 

Thanks for your recommendations. But is it possible to have official Adobe KB article on this topic please ?

 

Best regards

Jean-Pierre