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 40393 invoked from network); 16 Sep 2003 15:09:41 -0000 Received: from unknown (HELO tomts23-srv.bellnexxia.net) (209.226.175.185) by daedalus.apache.org with SMTP; 16 Sep 2003 15:09:41 -0000 Received: from plwkstn ([65.92.52.223]) by tomts23-srv.bellnexxia.net (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP id <20030916150943.CZKX860.tomts23-srv.bellnexxia.net@plwkstn> for ; Tue, 16 Sep 2003 11:09:43 -0400 Message-ID: <005201c37c64$f6e34850$6401a8c0@plwkstn> From: "Paul" To: "Tomcat Users List" References: <00c601c37bab$49f82890$6401a8c0@plwkstn> <3F65F8AB.2080709@cyberspaceroad.com> <003001c37bb5$54594760$6401a8c0@plwkstn> <3F662216.8050308@cyberspaceroad.com> Subject: Re: setup of global resources, dbcp, mail, etc. Date: Tue, 16 Sep 2003 11:12:37 -0400 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Adam, thanks for samples. I finally got it working. My problem was simply in naming, specifically, the ResourceLink name, and using that in the jsp connection code, the specific ResourceLink name for each webapp connect code, respectively. -paul. ----- Original Message ----- From: "Adam Hardy" To: "Tomcat Users List" Sent: Monday, September 15, 2003 4:33 PM Subject: Re: setup of global resources, dbcp, mail, etc. > Here's what I do: > > > > auth="Container" > type="javax.sql.DataSource" > description="blah"> > > > > factory > org.apache.commons.dbcp.BasicDataSourceFactory > > etc > > > and then in the > debug="5" reloadable="true" crossContext="true"> > > prefix="localhost_linklib_log." suffix=".txt" > timestamp="true"/> > global="jdbc/GlobalRealmDB" > type="javax.sql.DataSource"/> > > > On 09/15/2003 08:15 PM Paul wrote: > > thanks for the response. I think you are suggesting an approach i have > > already tried, with confusing results (confusing in that it worked for one > > web app, but not another!), namely, setting up a global resource under the > > following server.xml tag: > > > > the actual resource tag i use is as follows: > auth="Container" type="javax.sql.DataSource"/> > > > > and then the resource link is specified as follows: > > > crossContext="true"> > > > > > type="javax.sql.DataSource"/> > > > > > > > > Notice that the values for the "name" and "global" parameter in the > > ResourceLink tag are the same. I notice that in your example they are > > different. Where does the "global" value get defined? > > > > > > ----- Original Message ----- > > From: "Adam Hardy" > > To: "Tomcat Users List" > > Sent: Monday, September 15, 2003 1:36 PM > > Subject: Re: setup of global resources, dbcp, mail, etc. > > > > > > > >>The tricky bit is to remember to put a reference to the global-resource > >>in the contexts which want to use it: > >> > >> >> global="jdbc/GlobalRealmDB" > >> type="javax.sql.DataSource"/> > >> > >>Adam > >> > >>On 09/15/2003 07:03 PM Paul wrote: > >> > >>>has anyone been successful setting up a global resource under Tomcat > > > > 4.1, jdk 1.4 that is accessible to all webapps? If so, please describe how > > you configured tomcat. > > > >>>thanks, paul lomack > >>> > >> > >>-- > >>struts 1.1 + tomcat 4.1.27 + java 1.4.2 > >>Linux 2.4.20 RH9 > >> > >> > >>--------------------------------------------------------------------- > >>To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >>For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >> > >> > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > > > > > -- > struts 1.1 + tomcat 4.1.27 + java 1.4.2 > Linux 2.4.20 RH9 > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > >