Hi, SRV 9.11. Tomcat is not a J2EE implementation. Yoav Shapira Millennium ChemInformatics
>-----Original Message----- >From: maninder s batth [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, December 04, 2002 1:48 PM >To: Tomcat Users List >Subject: Re: get JNDI Context from client side where??? > >could you pls gime page # in 2.3 servlet spec about enviroment context >documentation. >i would like to read whole but as of now i am focussed on jndi aspect of >tomcat. >thank you > >Shapira, Yoav wrote: > >>Hi, >>The tomcat environment context is only bound within the tomcat JVM >>internally, as mandated by the 2.3 servlet spec. You shouldn't have >>direct access to it from an external source, like your client. And >>anyways, would you want your client to require the internal Catalina >>jars on its classpath? >> >>Yoav Shapira >>Millennium ChemInformatics >> >> >> >> >>>-----Original Message----- >>>From: Kevin Chen [mailto:[EMAIL PROTECTED]] >>>Sent: Wednesday, December 04, 2002 6:39 AM >>>To: [EMAIL PROTECTED] >>>Subject: get JNDI Context from client side >>> >>>Hi all: >>> >>>How can I get Tomcat JNDI context from client side?? >>>I wanna write a client side java code that can lookup Tomcat JNDI >>> >>> >>context. >> >> >>>Here is the code i wrote: >>> >>>Properties p = new Properties(); >>> p.put(Context.INITIAL_CONTEXT_FACTORY, >>>"org.apache.naming.java.javaURLContextFactory"); >>> p.put(Context.PROVIDER_URL, "rmi://localhost:1099"); >>> >>> try >>> { >>> Context ic = new javax.naming.InitialContext(p); >>> Object obj = ic.lookup("java:comp/env"); >>> ... >>> ... >>> } >>> >>> >>>And I got the following error message: >>>javax.naming.NameNotFoundException: No object bound for java:comp/env >>> >>>It seems like I didnt get the JNDI context of Tomcat. >>>Can anyone help?? >>> >>>Thanks!! >>> >>> >> >>-- >>To unsubscribe, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >>For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]> >> >> >> > >-- >Your favorite stores, helpful shopping tools and great gift ideas. >Experience the convenience of buying online with Shop@Netscape! >http://shopnow.netscape.com/ -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
