Gogo itself can be used outside the OSGi environment. For Karaf commands, it may be even simplier as you don't need gogo at all in this case. We have that for the admin shell which can be accessed through the shell scripts directly, see the admin/command/src/main/java/org/apache/felix/karaf/admin/main/Execute.java class for how it's done.
However, I'm not sure how you could start / stop bundles without any connection to the OSGi environment ... Installing / uninstalling bundles could be done using fileinstall though ... On Wed, Jun 23, 2010 at 12:08, Charles Moulliard <[email protected]> wrote: > Hi, > > Apache Felix Karaf (and now Apache Karaf) uses internally gogo for the > commands provided by platform. I would like to know if gogo proposes > an interface to execute commands outside of the server running > karaf/gogo like this is possible in jboss by example to access jmx > (http://docs.jboss.org/jbossas/docs/Server_Configuration_Guide/4/html/Connecting_to_the_JMX_Server-Command_Line_Access_to_JMX.html) > > This could be helpful to install/stop or start bundles without being > connected through a session to the server (like we can also do on > websphere to deploy/undeploy EAR files) > > KR, > > Charles Moulliard > > Senior Enterprise Architect (J2EE, .NET, SOA) > Apache Camel - ServiceMix Committer > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > Blog : http://cmoulliard.blogspot.com | Twitter : > http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard | Skype: cmoulliard > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

