Return-Path: X-Original-To: apmail-karaf-dev-archive@minotaur.apache.org Delivered-To: apmail-karaf-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9DC159F7C for ; Tue, 25 Oct 2011 09:18:39 +0000 (UTC) Received: (qmail 32487 invoked by uid 500); 25 Oct 2011 09:18:39 -0000 Delivered-To: apmail-karaf-dev-archive@karaf.apache.org Received: (qmail 32457 invoked by uid 500); 25 Oct 2011 09:18:39 -0000 Mailing-List: contact dev-help@karaf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@karaf.apache.org Delivered-To: mailing list dev@karaf.apache.org Received: (qmail 32448 invoked by uid 99); 25 Oct 2011 09:18:38 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Oct 2011 09:18:38 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL 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; Tue, 25 Oct 2011 09:18:32 +0000 X-Originating-IP: 217.70.178.138 Received: from mfilter9-d.gandi.net (mfilter9-d.gandi.net [217.70.178.138]) by relay3-d.mail.gandi.net (Postfix) with ESMTP id 2B57EA8091 for ; Tue, 25 Oct 2011 11:18:12 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mfilter9-d.gandi.net Received: from relay3-d.mail.gandi.net ([217.70.183.195]) by mfilter9-d.gandi.net (mfilter9-d.gandi.net [10.0.15.180]) (amavisd-new, port 10024) with ESMTP id QFGQh0m65fB5 for ; Tue, 25 Oct 2011 11:18:10 +0200 (CEST) X-Originating-IP: 87.193.254.34 Received: from [172.20.0.82] (port-87-193-254-34.static.qsc.de [87.193.254.34]) (Authenticated sender: jb@nanthrax.net) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 1A139A806E for ; Tue, 25 Oct 2011 11:18:07 +0200 (CEST) Message-ID: <4EA67ECF.5030902@nanthrax.net> Date: Tue, 25 Oct 2011 11:18:07 +0200 From: =?ISO-8859-1?Q?Jean-Baptiste_Onofr=E9?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: dev@karaf.apache.org Subject: Re: Karaf shutdown References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi Charles, correct: Bundle bundle =3D getBundleContext().getBundle(0); bundle.stop(); Regards JB On 10/25/2011 11:16 AM, Charles Moulliard wrote: > Hi, > > Can someone confirm that when we shutdown karaf, we stop the bundle =3D > 0 which is Apache Felix or Eclipse Equinox ? This system bundle when > it will shutdown will automatically shutdown all the bundles deployed > ? > > Bundle bundle =3D getBundleContext().getBundle(0); > bundle.stop(); > > Regards, > > Charles Moulliard > > Apache Committer > > Blog : http://cmoulliard.blogspot.com > Twitter : http://twitter.com/cmoulliard > Linkedin : http://www.linkedin.com/in/charlesmoulliard > Skype: cmoulliard --=20 Jean-Baptiste Onofr=E9 jbonofre@apache.org http://blog.nanthrax.net Talend - http://www.talend.com