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

Avatar

Avatar

pillaivinit

Avatar

pillaivinit

pillaivinit

02-12-2020

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.

 

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

884

Avatar

Arun_Patidar

MVP

Total Posts

3.1K

Likes

1.2K

Correct Reply

884
Arun_Patidar
MVP

17-02-2021

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...)

Answers (0)