Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 83622 invoked from network); 12 Dec 2002 21:36:40 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 12 Dec 2002 21:36:40 -0000 Received: (qmail 18489 invoked by uid 97); 12 Dec 2002 21:37:28 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 18403 invoked by uid 97); 12 Dec 2002 21:37:27 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 18312 invoked by uid 98); 12 Dec 2002 21:37:27 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) To: commons-dev@jakarta.apache.org X-Injected-Via-Gmane: http://gmane.org/ Path: not-for-mail From: Costin Manolache Subject: Re: [logging] Adding jndi java:env support Date: Thu, 12 Dec 2002 13:22:08 -0800 Lines: 22 Message-ID: References: <20021212114713.H59804-100000@icarus.apache.org> NNTP-Posting-Host: 64.84.39.162 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: main.gmane.org 1039728713 6304 64.84.39.162 (12 Dec 2002 21:31:53 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 12 Dec 2002 21:31:53 +0000 (UTC) User-Agent: KNode/0.7.1 Sender: news X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Craig R. McClanahan wrote: > > > On Wed, 11 Dec 2002, Costin Manolache wrote: > >> >> The big downsize is that we'll add a compile dependency on >> JNDI ( the code can catch ClassNotFound - and run even if >> JNDI is not present ). >> > > Why couldn't we use reflection to avoid the compile-time dependency as > well? After all, you like that pattern everywhere else :-). That's not necesarily true - I usually like a hook that plugs a class with the dependency, and conditional compilation. ( like in jdk11 compat package in tomcat ). Since JNDI is included in JDK1.3 and available for 1.1 - and it can be detected at runtime - I would rather use it directly and keep the code simpler. Costin -- To unsubscribe, e-mail: For additional commands, e-mail: