Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 89267 invoked from network); 28 Nov 2007 20:45:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2007 20:45:11 -0000 Received: (qmail 14536 invoked by uid 500); 28 Nov 2007 20:44:46 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 14515 invoked by uid 500); 28 Nov 2007 20:44:46 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 14504 invoked by uid 99); 28 Nov 2007 20:44:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 12:44:46 -0800 X-ASF-Spam-Status: No, hits=3.2 required=10.0 tests=HTML_MESSAGE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [70.151.92.195] (HELO mfra03.cobbworld.com) (70.151.92.195) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 20:44:45 +0000 Received: from mfra03.cobbworld.com (127.0.0.1) by mfra03.cobbworld.com (MlfMTA v3.2r9) id h9n8p00171s5 for ; Wed, 28 Nov 2007 15:37:14 -0500 (envelope-from ) Received: from cobbprod01.cobbworld.com ([192.168.99.74]) by mfra03.cobbworld.com (SonicWALL 6.0.1.9159) with ESMTP; Wed, 28 Nov 2007 15:37:14 -0500 In-Reply-To: <474DA67F.7090000@christopherschultz.net> To: "Tomcat Users List" Cc: Tomcat Users List Subject: Re: Create New Data Source MIME-Version: 1.0 Message-ID: From: Shekhar.Dhotre@CobbEnergy.com Date: Wed, 28 Nov 2007 15:43:06 -0500 X-MIMETrack: S/MIME Sign by Notes Client on Shekhar Dhotre/CobbEnergy(Release 7.0.1|January 17, 2006) at 11/28/2007 03:43:04 PM, Serialize by Notes Client on Shekhar Dhotre/CobbEnergy(Release 7.0.1|January 17, 2006) at 11/28/2007 03:43:04 PM, Serialize complete at 11/28/2007 03:43:04 PM, S/MIME Sign failed at 11/28/2007 03:43:04 PM: The cryptographic key was not found, Serialize by Router on CobbProd01/CobbEnergy at 11/28/2007 15:43:09, Serialize complete at 11/28/2007 15:43:09 Content-Type: multipart/alternative; boundary="=_alternative 0071CE6D852573A1_=" X-Mlf-Version: 6.0.1.9159 X-Mlf-UniqueId: o200711282037140234826 X-Virus-Checked: Checked by ClamAV on apache.org --=_alternative 0071CE6D852573A1_= Content-Type: text/plain; charset="US-ASCII" Christopher and Propes thanks a lot !! Christopher Schultz 11/28/2007 12:33 PM Please respond to "Tomcat Users List" To Tomcat Users List cc Subject Re: Create New Data Source -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Shekhar, You might want to start here: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations This page might be helpful for more Oracle questions: http://www.oracle.com/technology/tech/java/sqlj_jdbc/htdocs/jdbc_faq.htm Shekhar.Dhotre@CobbEnergy.com wrote: > I see following fields when I click on create data source . Where do the > above values go or is there an example somewhere that I can follow? > User Name: > Password: These two should be obvious. > JNDI Name: You get to make this one up. Usually it's something similar to the name of the database, but you can make it anything you'd like (I recommend against using / characters in the name, though). Try "lawdb" or something. This name needs to match the JNDI data source name that your application is expecting. > JDBC Driver Class: This is the name of the JDBC driver's class. It depends on the driver you are using for Oracle. Often, it's something like "oracle.jdbc.driver.OracleDriver". > Data Source URL: This also depends on the driver you are using. The "thin" driver takes URLs like this: jdbc:oracle:thin:@ For you, this would be: jdbc:oracle:thin:sdhotre/password@cemcp62:1521:lawtst ^user ^pass ^ host ^ port ^ SID > Max. Active Connections: > Max. Idle Connections: > Max. Wait for Connection: > Validation Query: These depend on what resource allocation and validation you want for connection pooling. You should read: http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations and http://commons.apache.org/dbcp/configuration.html For development and testing, I *always* set maxActive=1, maxIdle=1, and maxWait=1000 (10 seconds). For Oracle, a good validation query might be "SELECT 1 FROM DUAL". Hope that helps, - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFHTaZ/9CaO5/Lv0PARAo1AAJ0VG9AvcTBrJ2vQHimRcJ1GRAy3xACfbK+U /+n1hb2kchfkWkEyZcBIDb8= =jOZF -----END PGP SIGNATURE----- --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org --=_alternative 0071CE6D852573A1_=--