since ‎09-09-2019
‎31-12-2020
jamesc25111500
Level 1
Re: How to share a configuration across multiple bundles...
Avatar

jamesc25111500

jamesc25111500
- Adobe Experience Manager
Yes, you are right. I did realize this problem after digging into configuration factory.

Views

837

Likes

0

Replies

0
Re: How to share a configuration across multiple bundles...
Avatar

jamesc25111500

jamesc25111500
- Adobe Experience Manager
Thank you, Jbrar. I think this is what I need.

Views

841

Likes

0

Replies

0
How to share a configuration across multiple bundles in AEM6.4
Avatar

jamesc25111500

jamesc25111500
- Adobe Experience Manager
Hello, I have multiples OSGi bundles that use the same configuration properties. Now I create a below service for each bundle:@ObjectClassDefinition(name = "My configuration service", description = "Configuration for bundle")public @interface MyConfig { @AttributeDefinition(name = "My API:", description = "API endpoint for project", type = AttributeType.STRING) String myPropAPI() default "....";...}@activateprotected void activate(final MyConfig config) { this.api_endpoint = this.config.myPropAP...

Views

1.3K

Likes

0

Replies

4