Skip to content

Instantly share code, notes, and snippets.

@marktriggs
Created September 6, 2011 20:36
Show Gist options
  • Save marktriggs/1198874 to your computer and use it in GitHub Desktop.
Save marktriggs/1198874 to your computer and use it in GitHub Desktop.
$ rlwrap telnet localhost 4010
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Type ':eof' to exit
>>> scr = reference("org.apache.felix.scr.ScrService")
>>> components = scr.getComponents("org.sakaiproject.nakamura.http.usercontent.ServerProtectionServiceImpl")
>>> components
array(org.apache.felix.scr.Component, [Component: org.sakaiproject.nakamura.http.usercontent.ServerProtectionServiceImpl (-1)])
>>> components[0].disable()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment