Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 40373 invoked from network); 22 Aug 2007 16:55:16 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 22 Aug 2007 16:55:16 -0000 Received: (qmail 51254 invoked by uid 500); 22 Aug 2007 16:55:11 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 51198 invoked by uid 500); 22 Aug 2007 16:55:11 -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 51187 invoked by uid 99); 22 Aug 2007 16:55:11 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Aug 2007 09:55:11 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [69.147.95.78] (HELO smtp115.plus.mail.sp1.yahoo.com) (69.147.95.78) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Aug 2007 16:55:46 +0000 Received: (qmail 51535 invoked from network); 22 Aug 2007 16:54:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:Mime-Version:In-Reply-To:References:Content-Type:Message-Id:Content-Transfer-Encoding:From:Subject:Date:To:X-Mailer; b=rYB+dj6eYecmtIyFfcgWYhGckhDDawtag8mMa18ELS429ytw4/wiQDrFY4QPg5PGVQszQMh4emc9hfdgi8/kftJeNAD94S98+O1xGrd00S/M2XwqTlfOUt4MZ2jQgopzuXDfNRISQUEBdUKKXquEdR0SIQ7j0e6C1vwZhc+K6HY= ; Received: from unknown (HELO ?192.168.1.106?) (david_jencks@67.102.173.8 with plain) by smtp115.plus.mail.sp1.yahoo.com with SMTP; 22 Aug 2007 16:54:46 -0000 X-YMail-OSG: gPHPXusVM1lNnTOpaAnpqwFwqBXcT3zOtOXw41IM5mFLfLsYyoVzFVjmr4ElKAE7BP96Ithqew-- Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <421012bd0708220727m5ed2ba1cmdffd2fdabda59544@mail.gmail.com> References: <421012bd0708220727m5ed2ba1cmdffd2fdabda59544@mail.gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <5F90831A-A35F-495B-B28F-A568AD633531@yahoo.com> Content-Transfer-Encoding: 7bit From: David Jencks Subject: Re: DayTrader streamer and web services clients terminate unexpectedly Date: Wed, 22 Aug 2007 09:54:45 -0700 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Aug 22, 2007, at 7:27 AM, Christopher Blythe wrote: > All... > > I'm still working with the DayTrader streamer client and have run > into another issue I cannot explain. Both the streamer and ws app > client create Swing-based GUIs. I am in no way a Swing expert; > however, all of the docs that I have read indicate that the GUI > thread should remain up and running (along with the JVM) after main > completes. Here is an example... > > public class JFrameExample { > public static void main(String[] args) { > JFrame f = new JFrame("This is a test"); > ... > f.addWindowListener(new ExitListener()); > f.setVisible(true); > } > } > > From what I have seen all Swing apps use some variation of this, as > do the DayTrader streamer and ws app clients. > > Unfortunately, when I try to run these clients in under Geronimo > 2.0.1, the apps terminate when the main thread completes. I have > added a Thread.sleep() to the main just to verify that the GUI > remains up while the main thread is still active. > > Does anyone have any thoughts as to why the JVM is terminating with > main while the GUI threads are still active and have not been > closed? I've tried a SUN and IBM JVM and both result in early > termination. The only thing I can think of is that something in the > Geronimo client or the manner in which Geronimo packages the client > that is changing the behavior. I remember fixing this once.... My guess is that it got broken again when gianny added the bootstrap repository. A JIRA would be good I think. I suspect if you look around at the various command line classes you can see the code that shuts down the client from a shutdown hook and see why it isn't getting used. I'll try to find some time to take a look at this if you don't beat me to it. thanks david jencks > > Thanks... > > Chris > > > -- > "I say never be complete, I say stop being perfect, I say let... > lets evolve, let the chips fall where they may." - Tyler Durden