On Fri, 20 Jun 2003, Erik Price wrote:
> Date: Fri, 20 Jun 2003 09:02:27 -0400 > From: Erik Price <[EMAIL PROTECTED]> > Reply-To: Jakarta Commons Users List <[EMAIL PROTECTED]> > To: Jakarta Commons Users List <[EMAIL PROTECTED]> > 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 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
