migration of SCR annotation to OSGI R6 annotations | Adding multiple OCD for a component
Hi,
I am working on the migration of SCR annotation to OSGI R6 annotations. I am able to create and use custom OSGI config within the bundle using OCD.
1. I am not able to use them outside my main bundle. (We have multiple bundles referring the main OSGI config).
How to use them ? Got an error specifies ocd class com.xxx.cms.config.GlobalSystemSettings which cannot be found
2. Also I wanted to use 2 OSGi service inside my component. I am writing a scheduler, I wanted to refer to Scheduler Interface as one OCD and custom OSGI Configuration as another. Like show below
@Designate(ocd = SitemapSchedulerConfig.class,ocd = GlobalSystemSettings.class).
But i am getting error.
Any help would be appreciated.