Return-Path: Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 14536 invoked from network); 29 Sep 2003 13:08:25 -0000 Received: from unknown (HELO mustang.mpi.com) (63.244.250.132) by daedalus.apache.org with SMTP; 29 Sep 2003 13:08:25 -0000 Received: from lightning.mpi.com (lightning.mpi.com [63.244.252.11]) by mustang.mpi.com (Switch-2.2.8/Switch-2.2.6) with ESMTP id h8TD6sY06694 for ; Mon, 29 Sep 2003 09:06:54 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by lightning.mpi.com (Switch-3.0.5/Switch-3.0.0) with ESMTP id h8TD80pZ000573 for ; Mon, 29 Sep 2003 09:08:24 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Resource Questions Date: Mon, 29 Sep 2003 09:07:21 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8013DF39D@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Resource Questions Thread-Index: AcOEa5XmKcKSUB0CT8O+SreYltsIkwCHsMhA From: "Shapira, Yoav" To: "Tomcat Users List" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Howdy, >I have configured a JDBC datasource Resource within a context in the >server.xml >and am able to retrieve and use the datasource without any problems. I would stop here. ;) Don't use GlobalNamingResources unless you hav= e an overriding reason, as that's more of a tomcat-specific (rather than= servlet-spec) feature. A resource-ref should be included in web.xml (not webapp.xml, whatever that is) for a Resource defined in the server's JNDI tree. Otherwise the resource is not guaranteed to be available to your webapp in different containers. Yoav Shapira This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you.