AEM 5.6: bundle activate callback not called!
Hi,
I have this problem where a bunch of my OSGi bundles (not all of them), upon installation, doesn't call my services activate methods. I read this post:
But that seem to be targeted at 5.6.1/JDK1.7. I am running AEM 5.6.0.20130125 + JDK 1.6.0_65-b14-462-11M4609.
OTOH, the services in my bundles are accessible, and activation occur when some other components needs it. But I would like activation to happen at bundle installation time as I am registering listeners.
If you have ideas on why this is happening, I would be grateful.
Thanks.
P.S. I'm using the felix annotations for activation/service references etc.
ex.
@Component @Service(value = ProjectFactory.class) public class ProjectFactoryImpl extends BaseServiceImpl implements ProjectFactory, EventListener { private final Logger logger = LoggerFactory.getLogger(ProjectFactoryImpl.class); @Reference private LanguageManager languageManager; @Reference private SlingRepository repository; @Reference private ResourceResolverFactory resolverFactory; private Session session = null; @Activate public void activate() { logger.info("Please activate!"); // ... } // ... }