Hi, >After I uploaded the war file, I found that this action not only >uppacked war into the myapp directory with the >context.xml in mata-inf directory, ALSO, it generated myapp.xml in >C:\jakarta-tomcat-5.0.29\conf\Catalina\localhost
Funny, this is what I said would happen earlier today on this list on another thread ;) >This discovery is inconsistent with the JNDI doc says: either myapp.xml >in C:\jakarta-tomcat-5.0.29\conf\Catalina\localhost >or in meta-inf/context.xml. It's not inconsistent at all. Your can use either myapp.xml or META-INF/context.xml to deploy your app. If you use the latter Tomcat will create myapp.xml from context.xml. >Another question is: how do I get the JNDI enviroment variable value >from the java program? still using ctx.lookup or other way. All JNDI references should be lookup using the naming context. If you're using simple Environment variables, you don't need to use JNDI, you retrieve them like normal environment entries in any Java program. Yoav 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]
