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

How to access OSGI config of a built-in Service in java

Avatar

Level 3

Basically

I want to know what value is configured for "From" address in Day CQ Mail Service  in java.

so that I can use the value elsewhere.

 

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor
1 Reply

Avatar

Correct answer by
Community Advisor

You can use configurationAdmin API to access configuration in java

https://docs.osgi.org/javadoc/r6/cmpn/org/osgi/service/cm/ConfigurationAdmin.html#getConfiguration(j...)