geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Dillon <ja...@planet57.com>
Subject Re: When has the server started?
Date Sun, 03 Sep 2006 12:48:38 GMT
I found some bits in Daemon that I can use... though it iterates over  
all of the configs from a query... is there on bean that can be used  
to query the state?

--jason


On Sep 3, 2006, at 5:34 AM, Aaron Mulder wrote:

> I think kernelFullyStarted is a GBean attribute on only certain types
> of GBeans -- I believe PersistentConfigurationList GBeans.  It's set
> by Daemon.java when the startup process is complete, so it's not a
> kernel-level feature, but should still work for all practical
> purposes.  I would think you'd be able to get the property from the
> LocalAttributeManager via JMX.
>
> Thanks,
>     Aaron
>
> On 9/1/06, Jason Dillon <jason@planet57.com> wrote:
>> What is the best way to detect when the server has started using JMX?
>>
>> The ServerBehavior class in the deployment plugin has some code that
>> connects to JMX, then lists the configurations, and then takes he
>> first configuration and get the "kernelFulltStarted" attribute from
>> it... but it assumes that ConfigurationManager.listConfigurations()
>> returns an array of ObjectNames, which it does not.
>>
>> I also peeked at the server's JMX tree via jconsole and I don't see
>> any attribute or operation that matches up to "kernelFullyStarted".
>> There is also a strange "null" element of the tree, but I will leave
>> that for another day.
>>
>> So, how can I easily check of the server has started by polling a JMX
>> attribute?
>>
>> --jason
>>


Mime
View raw message