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
Level 3
October 16, 2015
Level 2
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