karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jean-Baptiste Onofré ...@nanthrax.net>
Subject Re: osgi CommandProvider
Date Mon, 22 Oct 2012 14:01:46 GMT
Hi,

take a look in package:exports.

If the package is not exported, and Equinox provide it, you have to 
update the jre.properties and system.properties to "expose" it.

Regards
JB

On 10/22/2012 03:56 PM, Dan Dumont wrote:
> No, I think you misunderstood me.
> I already have a bundle that implements
> org.eclipse.osgi.framework.console.CommandProvider
> In eclipse, I'm able to access the equinox console and issue commands,
> this already works.
>
> I'm trying the bundle out in karaf running with equinox and the command
> does not seem to be bridged into karaf's console.  Is there a way to
> access the equinox console impl?
>
> On Mon, Oct 22, 2012 at 9:32 AM, dealbitte <anand.bochum@gmail.com
> <mailto:anand.bochum@gmail.com>> wrote:
>
>     Hi,
>
>     did you try this.
>     http://karaf.apache.org/manual/latest-2.3.x/developers-guide/archetypes.html
>
>     this worked for me without any problem.
>
>     I have a command called 'createmsg' that I can execute from the
>     console. The
>     following class is an example implementation
>
>     *******
>     @Command(scope = "osgi", name = "createmsg", description = "print a
>     message")
>     public class createmsg extends OsgiCommandSupport {
>
>          protected Object doExecute() throws Exception {
>               System.out.println("Executing command createmsg");
>               return null;
>          }
>
>     *******
>     regards
>
>
>
>
>
>     --
>     View this message in context:
>     http://karaf.922171.n3.nabble.com/osgi-CommandProvider-tp4026523p4026525.html
>     Sent from the Karaf - User mailing list archive at Nabble.com.
>
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com

Mime
View raw message