avalon-phoenix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Alateras" <j...@intalio.com>
Subject RE: shutting down phoenix
Date Sat, 31 Aug 2002 07:47:47 GMT
thanks Peter, that will definitely work for me.

cheers
</jima>

> -----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:
> <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


--
To unsubscribe, e-mail:   <mailto:avalon-phoenix-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-phoenix-dev-help@jakarta.apache.org>


Mime
View raw message