Return-Path: X-Original-To: apmail-karaf-user-archive@minotaur.apache.org Delivered-To: apmail-karaf-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6E20DDCB5 for ; Mon, 22 Oct 2012 14:02:15 +0000 (UTC) Received: (qmail 38346 invoked by uid 500); 22 Oct 2012 14:02:15 -0000 Delivered-To: apmail-karaf-user-archive@karaf.apache.org Received: (qmail 38328 invoked by uid 500); 22 Oct 2012 14:02:15 -0000 Mailing-List: contact user-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@karaf.apache.org Delivered-To: mailing list user@karaf.apache.org Received: (qmail 38319 invoked by uid 99); 22 Oct 2012 14:02:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2012 14:02:15 +0000 X-ASF-Spam-Status: No, hits=1.3 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [217.70.183.195] (HELO relay3-d.mail.gandi.net) (217.70.183.195) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 22 Oct 2012 14:02:07 +0000 X-Originating-IP: 217.70.178.134 Received: from mfilter4-d.gandi.net (mfilter4-d.gandi.net [217.70.178.134]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id B30F1A80BE for ; Mon, 22 Oct 2012 16:01:47 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter4-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter4-d.gandi.net (mfilter4-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id GhzPracP2H0z for ; Mon, 22 Oct 2012 16:01:46 +0200 (CEST) X-Originating-IP: 82.238.224.4 Received: from [192.168.134.15] (bre91-1-82-238-224-4.fbx.proxad.net [82.238.224.4]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 58EF5A80BF for ; Mon, 22 Oct 2012 16:01:46 +0200 (CEST) Message-ID: <508551CA.50505@nanthrax.net> Date: Mon, 22 Oct 2012 16:01:46 +0200 From: =?UTF-8?B?SmVhbi1CYXB0aXN0ZSBPbm9mcsOp?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:16.0) Gecko/20121011 Thunderbird/16.0.1 MIME-Version: 1.0 To: user@karaf.apache.org Subject: Re: osgi CommandProvider References: <1350912738771-4026525.post@n3.nabble.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi, take a look in package:exports. If the package is not exported, and Equinox provide it, you have to=20 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 > wrote: > > Hi, > > did you try this. > http://karaf.apache.org/manual/latest-2.3.x/developers-guide/archet= ypes.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 =3D "osgi", name =3D "createmsg", description =3D "p= rint 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-tp4026523p40= 26525.html > Sent from the Karaf - User mailing list archive at Nabble.com. > > --=20 Jean-Baptiste Onofr=C3=A9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com