Hi,
Any JNDI implementation would support InitialContext creation once it's 
initialized.  But that's where the problem is.  If the JNDI implementation 
itself needs log4j as part of its bootstrapping, we have a chicken-and-egg 
problem, and this test is not so good.

For example in Tomcat, there are many logging statements made before the JNDI 
classes are initialized.

There are also corner cases for embedded servers (Tomcat and others), where the 
embedding application or the server itself might log before setting up JNDI.

So this test is iffy as it is right now.  I can't say it's 100% universally 
correct.  So it's a good thing the JNDI selector isn't the default.  If someone 
specifies it as the default via the system property, they hopefully also ensure 
that JNDI subsystem is initialized.

Yoav Shapira http://www.yoavshapira.com


>-----Original Message-----
>From: Jacob Kjome [mailto:[EMAIL PROTECTED]
>Sent: Monday, November 29, 2004 4:10 PM
>To: Log4J Developers List
>Subject: Re: Log4j-1.3 autoconfiguration default?
>
>Quoting Ceki G�lc� <[EMAIL PROTECTED]>:
>
>> At 09:23 PM 11/29/2004, Jacob Kjome wrote:
>>
>
>> This would work beautifully as long as the
>> "single-getInitialContext-exception-implies-no-NDI" hypothesis is
>> universally true. Is it?
>>
>
>I'm not 100% positive.  We'll have to get some concensus.  Maybe Yoav,
>being a
>Tomcat guru, would know the answer?
>
>Jake
>
>>
>> >Jake
>>
>> --
>> Ceki G�lc�
>>
>>   The complete log4j manual:  http://qos.ch/eclm
>>   Professional log4j support: http://qos.ch/log4jSupport
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, proprietary 
and/or privileged.  This e-mail is intended only for the individual(s) to whom 
it is addressed, and may not be saved, copied, printed, disclosed or used by 
anyone else.  If you are not the(an) intended recipient, please immediately 
delete this e-mail from your computer system and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to