tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From renyu teng <renyu_t...@yahoo.com>
Subject Re: InitialContext
Date Sun, 16 Dec 2001 00:39:06 GMT
sorry, found the typo.

thanks.

cheers
teng

--- renyu teng <renyu_teng@yahoo.com> wrote:
> 
> hi there,
> 
> could anyone tell me how to set the
> Context.INITIAL_CONTEXT_FACTORY in tomcat 4.0.01, I
> use the following code:
> 
>         Hashtable env_ht = new Hashtable();
> 
>        
> env_ht.put("Context.INITIAL_CONTEXT_FACTORY",
>                
> "org.jnp.interfaces.NamingContextFactor");
>         env_ht.put("java.naming.provider.url",
> "localhost:1099");
>         env_ht.put("java.naming.factory.pkgs",
> "org.jboss.naming:org.jnp.interfa
> ces");
>         InitialContext jndiContext = new
> InitialContext(env_ht);
> 
> The code is  a part of bean, and I use in jsp page.
> But if I print out the INITIAL_CONTEXT_FACTOR, I
> always get:
> 
> org.apache.naming.java.javaURLContextFactory
> 
> could anyone please drop me a line and tell me why?
> 
> I use Win2k, and tomcate 4.0.1, Java 1.3
> 
> thanks
> 
> regards
> teng
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for
> all of
> your unique holiday gifts! Buy at
> http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> 
> --
> To unsubscribe:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands:
> <mailto:tomcat-user-help@jakarta.apache.org>
> Troubles with the list:
> <mailto:tomcat-user-owner@jakarta.apache.org>
> 


__________________________________________________
Do You Yahoo!?
Check out Yahoo! Shopping and Yahoo! Auctions for all of
your unique holiday gifts! Buy at http://shopping.yahoo.com
or bid at http://auctions.yahoo.com

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message