Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 16078 invoked from network); 27 Feb 2007 23:53:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 Feb 2007 23:53:18 -0000 Received: (qmail 91574 invoked by uid 500); 27 Feb 2007 23:51:41 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 91523 invoked by uid 500); 27 Feb 2007 23:51:41 -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 91435 invoked by uid 99); 27 Feb 2007 23:51:40 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 15:51:39 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [208.97.132.177] (HELO spaceymail-a1.g.dreamhost.com) (208.97.132.177) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Feb 2007 15:51:27 -0800 Received: from [192.168.15.102] (cpe-76-167-174-30.socal.res.rr.com [76.167.174.30]) by spaceymail-a1.g.dreamhost.com (Postfix) with ESMTP id 47B0F19505F for ; Tue, 27 Feb 2007 15:51:06 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <84D3BB39-3C46-41FE-8432-837C0848106A@planet57.com> References: <84D3BB39-3C46-41FE-8432-837C0848106A@planet57.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <9A0A619F-3C3A-4248-B026-74402B316243@iq80.com> Content-Transfer-Encoding: 7bit From: Dain Sundstrom Subject: Re: mx4j logging init Date: Tue, 27 Feb 2007 15:50:56 -0800 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org With the exception of the remote deployer, we don't rely on JMX. The remote deployer uses JMX remoting to connect to the Geronimo deployment service. Assuming that works, we should be ok using what the vm ships. -dain On Feb 27, 2007, at 1:27 PM, Jason Dillon wrote: > Good point... we should start ripping that stuff out, probably save > a wee bit of space in the assembly. > > Though... by doing so we are at the mercy of the JVM to provide a > JMX system that doesn't suck ass (horrible bugs, etc). > > --jason > > > On Feb 27, 2007, at 12:51 AM, Dain Sundstrom wrote: > >> We don't need mx4j in 2.0 since jmx is in the vm starting with Java5. >> >> -dain >> >> On Feb 26, 2007, at 7:02 PM, Jason Dillon wrote: >> >>> Anyone know if we can replace these bits in >>> GeronimoLogging.initialize() >>> >>> >>> try { >>> Class clazz = Class.forName("mx4j.log.Log"); >>> Class paramClazz = Class.forName("mx4j.log.Logger"); >>> Method method = clazz.getDeclaredMethod("redirectTo", new >>> Class[] {paramClazz}); >>> paramClazz = Class.forName("mx4j.log.CommonsLogger"); >>> method.invoke(null, new Object[] {paramClazz.newInstance()}); >>> } catch (ClassNotFoundException e) { >>> // MX4J is not present. >>> } catch (Exception e) { >>> throw (AssertionError) new AssertionError("Cannot force MX4J >>> to use commons logging.").initCause(e); >>> } >>> >>> >>> With: >>> >>> >>> System.setProperty("mx4j.log.prototype", "mx4j.log.CommonsLogger"); >>> >>> >>> --jason >> >