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.