One OSGi Config With Different Classes | Community
Skip to main content
October 16, 2015
Solved

One OSGi Config With Different Classes

  • October 16, 2015
  • 2 replies
  • 2266 views

Hello Experts,

I have a very basic question (programming best practice), please help.

I have three different servlets which uses same configurations like username, password and hostname etc. How can i have one OSGi configuration used by all three servlet class.

 

Regards,

~TD

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 awadheshv

I hope this will help you. http://www.wemblog.com/2012/10/how-to-work-with-configurations-in-cq.html

2 replies

awadheshvAccepted solution
New Participant
October 16, 2015
New Participant
October 16, 2015

Create global service which is dedicated to maintaining global properties and then in your service call this global property service to get configured values for username..etc