Views
Replies
Total Likes
Hi,
You are mixing osgi and Felix annotation.
Please use only osgi annotaions
remove org.apache.felix.scr.annotations.Reference and use import org.osgi.service.component.annotations.Reference;
Views
Replies
Total Likes
Hi,
What are you trying to do,
you can get resource resolver from subservice user.
and then get appropriate objects value not null.
@Reference
private ResourceResolverFactory resourceResolverFactory;
ResourceResolver resourceResolver = null;
try {
Map<String, Object> serviceParams = new HashMap<String, Object>();
serviceParams.put(ResourceResolverFactory.SUBSERVICE, "training");
resourceResolver = resourceResolverFactory.getServiceResourceResolver(serviceParams);
} catch (LoginException e) {
e.printStackTrace();
}
Views
Replies
Total Likes
i
Views
Replies
Total Likes
i don't know because of this ”EventHandler“
all I received both of them are null
Views
Replies
Total Likes
Can you share your imports?
Views
Replies
Total Likes
Have you used the Maven Archetype to boostrap your AEM project?
Jörg
Views
Replies
Total Likes
Views
Replies
Total Likes
yes
because i use these Servlet can receive resolverFactory
Views
Replies
Total Likes
Views
Replies
Total Likes
Hi,
You are mixing osgi and Felix annotation.
Please use only osgi annotaions
remove org.apache.felix.scr.annotations.Reference and use import org.osgi.service.component.annotations.Reference;
Views
Replies
Total Likes
i have to use this EventListener
but i need listener many pages publish
so i dont know how to use this
Views
Replies
Total Likes
See the artilce i just posted. Go through it and make it work. I will update this too include a video so you can see it working.
Views
Replies
Total Likes
wow thank you very much
Views
Replies
Total Likes
thank you
it worked
Views
Replies
Total Likes
I also tested on AEM 6.4 --
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies