Hi Remy,
I know that you are busy but may I know when we will see this change?
I just checked the CVS repository about 1 hour ago and it's not there
yet. Will it make it into the next release? We are trying to debate when
we should move to Tomcat 4 as we are currently on Tomcat 3.
thanks a lot!!!
On Monday, November 5, 2001, at 03:53 PM, Remy Maucherat wrote:
>> Hi folks,
>>
>> Tomcat 4.x has its own JNDI server. But I would like it to use a
>> different initial factory. One of the ways is to pass the value
>> "-Djava.naming.factory.initial=com.mycompany.rmi.jndi.CtxFactory"
>>
>> But Catalina.java has hard coded
>> "org.apache.naming.java.javaURLContextFactory" as its factory,
>> completely ignoring the System property. I added the codes to
>> Catalina.java (see diff below). Is my analysis correct? If not, what
>> should I do?
>>
>> Thanks, hanming
>>
>> % cd jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/startup
>> % diff Catalina.java Catalina.java.org
>> 452,455d451
>> < value =
>> System.getProperty(javax.naming.Context.INITIAL_CONTEXT_FACTORY);
>> < if (value == null) {
>> < value =
>> "org.apache.naming.java.javaURLContextFactory";
>> < }
>> 457c453
>> < value);
>> ---
>>>
>> "org.apache.naming.java.javaURLContextFactory");
>
> Yes, doing that may be more reasonable. I'll apply the patch.
>
> Remy
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>