OSGI R6 configuration and the Felix SCR configuration can be used in a single project?
Can I use both Felix SCR annotation, OSGI R6 annotations in a single project?? I think answer is yes. But wanted to confirm from others. - Thank in advance.
Can I use both Felix SCR annotation, OSGI R6 annotations in a single project?? I think answer is yes. But wanted to confirm from others. - Thank in advance.
Hi @gmahesh ,
It depends on your project archetype and AEM version - OSGI DS annotations are recommended over SCR annotations starting 6.2+.
However, You can mix SCR annotations and OSGI annotations in a project, you don’t need to migrate them all at once. But you can to be consistent on a class level, you cannot mix SCR and OSGI annotations in a single class. This is achieved by an extension to the maven-bundle-plugin.
In short, answering your question is YES!
Hope that helps!
Regards,
Santosh
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.