How to access OSGI config of a built-in Service in java | Community
Skip to main content
Level 3
December 2, 2020
Solved

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

  • December 2, 2020
  • 1 reply
  • 882 views

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.
Best answer by arunpatidar

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)

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
February 17, 2021
Arun Patidar