You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thufir <ha...@gmail.com> on 2010/03/25 15:26:15 UTC
JNDI config
For a servlet to employ JNDI to access a JDBC database, Tomcat must be
configured? JNDI won't work on a vanilla configuration of Tomcat?
1. Install Your JDBC Driver
Use of the JDBC Data Sources JNDI Resource Factory requires that you make
an appropriate JDBC driver available to both Tomcat internal classes and
to your web application. This is most easily accomplished by installing
the driver's JAR file(s) into the $CATALINA_HOME/lib directory, which
makes the driver available both to the resource factory and to your
application.
http://tomcat.apache.org/tomcat-6.0-doc/jndi-resources-howto.html
Thanks,
Thufir
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org
RE: JNDI config
Posted by "Caldarale, Charles R" <Ch...@unisys.com>.
> From: Thufir [mailto:hawat.thufir@gmail.com]
> Subject: JNDI config
>
> For a servlet to employ JNDI to access a JDBC database, Tomcat must be
> configured?
Yes.
> JNDI won't work on a vanilla configuration of Tomcat?
How could it? JNDI is simply a registry of names and references. If you don't register something in JNDI, there's nothing to look up. Tomcat implements usage of JNDI, but you've got to put something in it to get anything out.
- Chuck
THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers.