Skip to main content
Oct 16, 2015 2:28 AM UTC
Solved

One OSGi Config With Different Classes

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.
awadheshvAccepted solution
Level 3
Oct 16, 2015 2:28 AM UTC

2 replies

Level 2
Oct 16, 2015 2:28 AM UTC

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

Translate
awadheshvAccepted solution
Level 3
Oct 16, 2015 2:28 AM UTC