Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 42467 invoked from network); 7 Sep 2006 16:38:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Sep 2006 16:38:04 -0000 Received: (qmail 52854 invoked by uid 500); 7 Sep 2006 16:38:01 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 52660 invoked by uid 500); 7 Sep 2006 16:38:01 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 52649 invoked by uid 99); 7 Sep 2006 16:38:01 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 09:38:01 -0700 X-ASF-Spam-Status: No, hits=3.7 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_POST,DNS_FROM_RFC_WHOIS,FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [66.94.25.112] (HELO svcstatl08.hotspot.t-mobile.com) (66.94.25.112) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 07 Sep 2006 09:38:00 -0700 Received: from [10.252.143.164] (164.143.252.10.in-addr.arpa [10.252.143.164]) by svcstatl08.hotspot.t-mobile.com (8.12.10+Sun/8.12.10) with ESMTP id k87GbcYS015167 for ; Thu, 7 Sep 2006 12:37:38 -0400 (EDT) Mime-Version: 1.0 (Apple Message framework v749.3) In-Reply-To: References: <1E373D7E-E9C6-4F5E-BECE-24FA799E2098@planet57.com> <74e15baa0609030534y456522b2mfdf1289a258b2a9c@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <32FE2E82-61B7-44BF-9A95-645BD286A6BE@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: When has the server started? Date: Thu, 7 Sep 2006 12:37:50 -0400 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.749.3) X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlx=0 adultscore=0 adjust=0 reason=mlx engine=3.1.0-0608080000 definitions=main-0609070008 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sep 7, 2006, at 9:44 AM, Bill Dudney wrote: > Hi Jason, > > I had some time to dig into this a bit and it looks to me like > anything that does not belong to a particular J2EE app ends up here. > > i.e. > > MBean Name == geronimo:J2EEApplication=null,J2EEServer-geronimo,... > > is common to all. Looks to me like the deployables in the config > that don't have a J2EEApplication specified get null and thus the > weird null entry. Changing that to something else would probably be > tedious... IIRC J2EEApplication=null is specified and required by jsr-77 for stuff from J2EE apps that aren't in an ear (standalone app clients, web apps, connectors, ejbs). If it's in an ear, J2EEApplication= thanks david jencks > > TTFN, > > -bd- > > On Sep 3, 2006, at 6:54 AM, Jason Dillon wrote: > >> Somewhat related... I mentioned this before, but jconsole shows a >> weird null element in the tree... any idea why? >> >> --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 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 >>>> >> >