I am trying to connect to the CRX repository.
Initially I created a connection in a class inside of Eclipse using
// Create a connection to the CQ repository running on local host
Repository repository = JcrUtils
// Create a Session
javax.jcr.Session session = repository.login(new SimpleCredentials( /
When I imported my class into a CRXDE bundle that I created this did not work. So I read further that the above method does not work in the sling bundle and that I need to use esourceResolver resourceResolver = resolverFactory.getAdministrativeResourceResolver(null);
Solved! Go to Solution.