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
BedrockMission!

Learn More

View all

Sign in to view all badges

SCR annotations to OSGI DS annotations

Avatar

Avatar
Validate 1
Level 2
ashwiniv5325199
Level 2

Like

1 like

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 2
ashwiniv5325199
Level 2

Like

1 like

Total Posts

22 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
ashwiniv5325199
Level 2

19-09-2018

Hi Team,

             How to convert SCR annotations of a Class which implements JOB EXECUTOR into OSGI DS annotations.

Please suggest me

Example:

@Component(label = SampleJobExecutor.NAME, description = Sample.DESCRIPTION, immediate = true)

@Properties({

@Property(label = Sample.PROP_LABEL, value = SampleConstants.JOB_TYPE, description = Sample.PROP_DESC, name = JobConsumer.PROPERTY_TOPICS, propertyPrivate = true) })

@Service

public class SampleJobExecutor implements JobExecutor {

///////........

}

Thanks

Ashwini V

Replies

Avatar

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Validate 25
MVP
Ratna_Kumar
MVP

Likes

158 likes

Total Posts

755 posts

Correct Reply

134 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ratna_Kumar
MVP

19-09-2018

Hi Ashwini,

Please have a look in the below video which discuses, how to use DS annotations in place of SCR annotations.

Scott's Digital Community: Learn how to use DS Annotations and Inject a custom AEM Service into a Cu...

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

Hope this helps!!

Thanks,

Ratna Kumar.