Return-Path: Delivered-To: apmail-jakarta-avalon-phoenix-dev-archive@apache.org Received: (qmail 12027 invoked from network); 31 Aug 2002 07:47:38 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 31 Aug 2002 07:47:38 -0000 Received: (qmail 22489 invoked by uid 97); 31 Aug 2002 07:48:20 -0000 Delivered-To: qmlist-jakarta-archive-avalon-phoenix-dev@jakarta.apache.org Received: (qmail 22433 invoked by uid 97); 31 Aug 2002 07:48:19 -0000 Mailing-List: contact avalon-phoenix-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Avalon-Phoenix Developers List" Reply-To: "Avalon-Phoenix Developers List" Delivered-To: mailing list avalon-phoenix-dev@jakarta.apache.org Received: (qmail 22421 invoked by uid 98); 31 Aug 2002 07:48:18 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Reply-To: From: "Jim Alateras" To: "Avalon-Phoenix Developers List" Subject: RE: shutting down phoenix Date: Sat, 31 Aug 2002 17:47:47 +1000 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Importance: Normal In-Reply-To: <200208311622.44816.peter@apache.org> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N thanks Peter, that will definitely work for me. cheers > -----Original Message----- > From: Peter Donald [mailto:peter@apache.org] > Sent: Saturday, August 31, 2002 4:23 PM > To: Avalon-Phoenix Developers List > Subject: Re: shutting down phoenix > > > On Sat, 31 Aug 2002 14:27, Jim Alateras wrote: > > Is there also a way to stop phoenix programmatically? Could i retrieve a > > reference to the Embeddor, from the ComponentManager, and call > shutdown. > > Well you *can* locate MBeanServer (either via RMI or > programatically), then > locate the embeddor and request its shutdown. However that is potentially > ugly code and brittle to boot (especially with JMX namespaces not > fixed just > yet). > > However give me an hour or so and I will add a method > > BlockContext.requestShutdown() > > This will allow the Block to request the shutdown of its own > application. The > application will then shutdown. If there are 0 applications left > in kernel > and the "persitent" flag has not been set this will cause the kernel to > shutdown. That work for you? > > -- > Cheers, > > Peter Donald > Sufficiently advanced science is > indistinguishable from magic" > -- Arthur C. Clarke > > > -- > To unsubscribe, e-mail: > > For additional commands, e-mail: > -- To unsubscribe, e-mail: For additional commands, e-mail: