commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Craig R. McClanahan" <craig...@apache.org>
Subject Re: <new dbcp user> Greatly confused.
Date Fri, 20 Jun 2003 16:06:21 GMT


On Fri, 20 Jun 2003, Erik Price wrote:

> Date: Fri, 20 Jun 2003 09:02:27 -0400
> From: Erik Price <eprice@ptc.com>
> Reply-To: Jakarta Commons Users List <commons-user@jakarta.apache.org>
> To: Jakarta Commons Users List <commons-user@jakarta.apache.org>
> Subject: Re: <new dbcp user> Greatly confused.
>
>
>
> Dawid Van Der Merwe wrote:
>
> > Did you add a
> >
> > 	<resource-ref>
> > 	  <description>Resource for DB connections</description>
> > 	  <res-ref-name>jdbc/JNDI_NAME</res-ref-name>
> > 	  <res-type>javax.sql.DataSource</res-type>
> > 	  <res-auth>Container</res-auth>
> > 	</resource-ref>
> >
> > section to your web.xml file?
> >
> > It will not work without it.
>
> Is the official documentation on what these terms mean in the Servlet
> 2.3 spec, or J2EE spec, or somewhere else?
>

The elements themselves are documented in the DTD inside the Servlet 2.3
spec, but the mandate that app servers support this is in the J2EE spec.
Tomcat goes beyond the basic requirements of the servlet spec to support
JNDI resources where it makes sense (i.e. not for EJBs because it is not
an EJB container), but it does not actually enforce the requirement that
you include a <resource-ref> inside your own web.xml file.

>
>
> Erik

Craig

Mime
View raw message