Adobe Global Community

How to refresh OSGI R6 components on bundle activation

Published on by Ahmed Musallam on
Recently, I had the need to wrap the default implementation for AEM’s mail service in a new service called CustomMailService where I wanted to transform certain emails and let other emails be handled by the default service. My main interest was for the AccountManagementService to bind my implementation of the MailService, instead the default implementation, you can achieve this by adding the service.ranking property and giving it an integer higher than the default implementation:


comments powered by Disqus

Get Insights from the AGC!

Related Posts