How to access OSGI config of a built-in Service in java | Community
Skip to main content
Level 3
Dec 2, 2020 2:10 PM UTC
Solved

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

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.

 

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
arunpatidar
arunpatidarAccepted solution
New Participant
Feb 17, 2021 8:31 PM UTC

You can use configurationAdmin API to access configuration in java

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

Arun Patidar

1 reply

arunpatidar
arunpatidarAccepted solution
New Participant
Feb 17, 2021 8:31 PM UTC
Arun Patidar