Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

SCR to R7 Migration (DS annotation)

Avatar

Level 4

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.

tushaars9735484_0-1598474070390.png

 

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 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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.

 

View solution in original post

3 Replies

Avatar

Correct answer by
Community Advisor

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.

 

Avatar

Level 4
is it necessary to have Java 9 for using R7? because my project using JDK8

Avatar

Community Advisor

Hi @tushaar_srivastava,

No, it is not mandatory. OSGI R7 supports few features of Java 9.