You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Patrick Shea <pa...@ps1.net> on 2010/10/28 14:51:50 UTC

How to use the console outside osgi/karaf

I saw in the 2.1 release that it would be possible to use the console outside of osgi, is there an example of how to do this?

Patrick


Re: How to use the console outside osgi/karaf

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Patrick,

I depends what you mean by "outside of OSGi" :)

The Karaf console and commands are based itself on OSGi (the command are 
Blueprint bundles).
To extend the Karaf console by adding your own commands, you will have 
to create OSGi bundles.

Not sure to understand what you need :)

Regards
JB

On 10/28/2010 02:51 PM, Patrick Shea wrote:
> I saw in the 2.1 release that it would be possible to use the console outside of osgi, is there an example of how to do this?
>
> Patrick
>

Re: How to use the console outside osgi/karaf

Posted by Patrick Shea <pa...@ps1.net>.
Thanks for the quick response, I love karaf and love the console/ssh concept, it's just that I would like to use it outside karaf for something not related to osgi, it would be nice if the console/command framework would be a stand alone project.

Patrick

-----Original Message-----
From: "Guillaume Nodet" <gn...@gmail.com>
Sent: Thursday, October 28, 2010 9:13am
To: user@karaf.apache.org
Subject: Re: How to use the console outside osgi/karaf

The gogo shell is available without the OSGi framework, so it is
possible to start the console by using the bin/shell script.
However most of the commands in Karaf depends on the OSGi framework or
some OSGi service, so those won't work.
We don't have much doc on that yet, but the discovery is done by
searching META-INF/services/org/apache/karaf/shell/commands files
which contain the list of commands to make available in the shell.
So only a few of those will be available when using bin/shell.

On Thu, Oct 28, 2010 at 14:51, Patrick Shea <pa...@ps1.net> wrote:
> I saw in the 2.1 release that it would be possible to use the console outside of osgi, is there an example of how to do this?
>
> Patrick
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com



Re: How to use the console outside osgi/karaf

Posted by Guillaume Nodet <gn...@gmail.com>.
The gogo shell is available without the OSGi framework, so it is
possible to start the console by using the bin/shell script.
However most of the commands in Karaf depends on the OSGi framework or
some OSGi service, so those won't work.
We don't have much doc on that yet, but the discovery is done by
searching META-INF/services/org/apache/karaf/shell/commands files
which contain the list of commands to make available in the shell.
So only a few of those will be available when using bin/shell.

On Thu, Oct 28, 2010 at 14:51, Patrick Shea <pa...@ps1.net> wrote:
> I saw in the 2.1 release that it would be possible to use the console outside of osgi, is there an example of how to do this?
>
> Patrick
>
>



-- 
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com