SCR to R7 Migration (DS annotation) | Community
Skip to main content
tushaar_srivastava
Level 6
August 26, 2020
Solved

SCR to R7 Migration (DS annotation)

  • August 26, 2020
  • 1 reply
  • 2564 views

Hi Team,

I am new to DS annotation.

We were using SCR annotation, now we are getting like this is deprecated and now for any new service (workflow, servlet or scheduler) creation we need to use R7 annotations.

 

I tried to follow : http://www.sgaemsolutions.com/2017/07/migration-of-scr-annotations-to-osgi-r6.html

To use R7 annotation. but after adding plugin and dependencies to pom.xml and build project still I am seeing error.

So could you please guide me how to Migrate from SCR to DS annotation(R7).
1- is there any help guide documentation SCR to R7?

 

2- do we need to Migrate all the old code from SCR to DS annotation, if we dn't migrate old code and kept as is SCR annotation what will be the impact?



@kautuk_sahni  @arunpatidar  @vijayalakshmi_s  @vanegi 

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 Vijayalakshmi_S

Hi @tushaar_srivastava,

As a first step, I suggest to go through below link which explains about SCR and OSGI annotations, concerns about migration, mixed use and related 

In particular for OSGI R7 annotation, details about plugin, dependency details with example is highlighted in 

Try following the links and try once in local with one simple class being changed to OSGI R7 annotation and build project.

Share the error details that you come across as you build.

 

1 reply

Vijayalakshmi_S
Vijayalakshmi_SAccepted solution
Level 10
August 26, 2020

Hi @tushaar_srivastava,

As a first step, I suggest to go through below link which explains about SCR and OSGI annotations, concerns about migration, mixed use and related 

In particular for OSGI R7 annotation, details about plugin, dependency details with example is highlighted in 

Try following the links and try once in local with one simple class being changed to OSGI R7 annotation and build project.

Share the error details that you come across as you build.

 

tushaar_srivastava
Level 6
August 27, 2020
is it necessary to have Java 9 for using R7? because my project using JDK8