Hi, In general, read the FAQ: http://jakarta.apache.org/tomcat/faq/misc.html#externalJndi
And to your specific case, consider Cactus (http://jakarta.apache.org/cactus/). Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Chandu [mailto:[EMAIL PROTECTED] >Sent: Friday, April 02, 2004 6:30 AM >To: Tomcat Users List >Subject: Accessing JNDI resource bound in tomcat > >Hi, > >I have one resource made bound in tomcat. Lets assume that its name is >mysqlds and the >resource type is javax.sql.DataSource. The connection pooling, jdbc driver >classes and other >supporting classes are all deployed tomcat. Now I have a test case which >uses the mysqlds >resource to create connections. > >Now I want to lookup that resource from testcase. The test case shall be >executed in a different >process i.e., its a standalone junit execution. The tomcat server is >located somewhere else in the >network. If my test case looks up the resource using the >javax.naming.InitialContext it is reporting >error to set the inital context factory class. > >Tomcat is running in a JVM at some other place, and my testcase is running >at another place in the >same network in a different JVM. > >How do I access the resource bound in tomcat from the testcase? > >- Chandu. This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
