This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
java:comp/env is the standard J2EE prefix used to lookup resources via JNDI.
Joined: Jun 26, 2008
Thanks for the immediate response. When i promote this in production server there they will create a jndi using tomcat admin. in context path i cant specify the username and password as i dont know and its not safe. Can you guide me on this..
Originally posted by Siddharth Naik: (1) Put JDBC driver to appropriate server directory. For Tomcat put it under: Tomcat/commons/lib directory
(2) Create context.xml under META-INF directory of your project with following code. Replace values specific to your environment including driverClassName of your database.