sorry, found the typo.
thanks.
cheers
teng
--- renyu teng <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED]>
> For additional commands:
> <mailto:[EMAIL PROTECTED]>
> Troubles with the list:
> <mailto:[EMAIL PROTECTED]>
>
__________________________________________________
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:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>