hi clive,The code that you have is used to connect to another/external
JcrRepository.From your JSP/component you can do
this:resource.getResourceResolver().adaptTo(Session.class)This then uses
the session of the current user (and his permissions).And yes you can
also use the 'admin resource-resolver', but try to avoid that unless
there is a real need for it.--feike