Hi Dan, On Fri, Aug 6, 2021 at 3:55 PM Daniel Klco <[email protected]> wrote: > On Fri, Aug 6, 2021 at 8:40 AM Bertrand Delacretaz <[email protected]> > wrote: > >...I think nowadays we'd rather create command-line > > utilities for such things,...
> ...The question I have though is how would I get access to the running OSGi > context? I've done JCR over RMI, but I'm not seeing a good way to invoke > services remotely... I think you either need a specific servlet on the Sling side, which kind of defeats the whole purpose of a command-line tool, or you can inject code from the client side given the appropriate permissions. Uploading a Sling script comes to mind, but that won't work if the target instance uses read-only scripts. -Bertrand
