2 Replies Latest reply on Jul 9, 2013 12:22 PM by acequeen08

    Accessing the pageContext in sling scheduled service

    acequeen08

      I have defined a class that will implement a sling scheduler for specific jobs.  I have access to the componentContext and bundleContext.  I have tried using the bundleContext to get the referenced service for CQ5 to gain access to the request.  I have also tried using annotations and setting up a reference to the repository to get the JCR object, which is returning the node refrerence.  However, my end result is to access actual page objects from cq.  I found documentation on using JcrResourceResolverFactory to get the resourceResolver but the class has been deprecated and resourceResolverFactory is recommended for use - which is throwing type is unresolved.  So essentially I would like to just the pageContext or resourceResolver in the simpliest way for my class (I have more experience with custom taglibs).