You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Han Ming Ong <ha...@chirpyfish.org> on 2001/11/05 19:39:17 UTC
Asking Tomcat 4.x to accept a different JNDI initial factory
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");
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Asking Tomcat 4.x to accept a different JNDI initial factory
Posted by Remy Maucherat <rm...@home.com>.
> 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!!!
Oops. I forgot. Sorry.
Remy
> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Asking Tomcat 4.x to accept a different JNDI initial factory
Posted by Han Ming Ong <ha...@chirpyfish.org>.
Oops, that was meant to be a private message. My deepest apologies!
On Friday, November 16, 2001, at 01:56 PM, Han Ming Ong wrote:
> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Asking Tomcat 4.x to accept a different JNDI initial factory
Posted by Han Ming Ong <ha...@chirpyfish.org>.
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Asking Tomcat 4.x to accept a different JNDI initial factory
Posted by Remy Maucherat <rm...@home.com>.
> 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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>