Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 97806 invoked from network); 24 Sep 2008 13:56:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Sep 2008 13:56:57 -0000 Received: (qmail 59888 invoked by uid 500); 24 Sep 2008 13:56:43 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 59857 invoked by uid 500); 24 Sep 2008 13:56:43 -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 59846 invoked by uid 99); 24 Sep 2008 13:56:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 06:56:43 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [203.187.150.196] (HELO mshxbex01.xius.ltd) (203.187.150.196) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Sep 2008 13:55:43 +0000 Received: from mshxbex01.xius.ltd ([172.16.16.15]) by mshxbex01.xius.ltd ([172.16.16.15]) with mapi; Wed, 24 Sep 2008 19:21:51 +0530 From: karthikn To: Tomcat Users List Date: Wed, 24 Sep 2008 19:26:10 +0530 Subject: RE: Some Prilim questions Thread-Topic: Some Prilim questions Thread-Index: AckeS8+KP6lkjL31THivin/uj8vGdgAAWztQ Message-ID: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org Hi Good Joke :( With regards Karthik -----Original Message----- From: Martin Gainty [mailto:mgainty@hotmail.com] Sent: Wednesday, September 24, 2008 7:19 PM To: Tomcat Users List Subject: RE: Some Prilim questions the referenced jndi lookup in the webapp context is located in India and th= e DB is in Ithaca NY the Indian JNDI lookup is considerably slower than 'or= dinary JDBC connection' from NY With Warm Regards Martin ______________________________________________ Disclaimer and confidentiality note Everything in this e-mail and any attachments relates to the official busin= ess of Sender. This transmission is of a confidential nature and Sender doe= s not endorse distribution to any party other than intended recipient. Send= er does not necessarily endorse content contained within this transmission. > From: karthik.nanjangude@xius-bcgi.com > To: users@tomcat.apache.org > Date: Wed, 24 Sep 2008 18:56:53 +0530 > Subject: RE: Some Prilim questions > > Hi > > Ok, I have read the link provided > > This answers the 2nd Question > > What about the first Question ? > >> Which is faster JNDI Based Connection pool / ordinary JDBC based conne= ction / close ? > > > With regards > karthik > > -----Original Message----- > From: Martin Gainty [mailto:mgainty@hotmail.com] > Sent: Wednesday, September 24, 2008 6:48 PM > To: users@tomcat.apache.org > Subject: RE: Some Prilim questions > > > read this > http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.ht= ml > > Martin > ______________________________________________ > Disclaimer and confidentiality note > Everything in this e-mail and any attachments relates to the official bus= iness of Sender. This transmission is of a confidential nature and Sender d= oes not endorse distribution to any party other than intended recipient. Se= nder does not necessarily endorse content contained within this transmissio= n. > > > > From: karthik.nanjangude@xius-bcgi.com > > To: users@tomcat.apache.org > > Date: Wed, 24 Sep 2008 18:19:38 +0530 > > Subject: Some Prilim questions > > > > Hi > > > > Spec: > > O/s : Unix HP 11i > > Tomcat : 6.0.18 > > J2sdk : 1.6 > > DB : Oracle 10g > > > > Question > > > > 1) Which is faster JNDI Based Connection pool / ordinary JDBC bas= ed connection / close ? > > > > 2) In JNDI / context based Connection pool for the code given b= elow > > > > InitialContext ic =3D new InitialContext(); > > DataSource ODS =3D(javax.sql.DataSource)ic.lookup("java:comp/env= /jdbc/MYSCEMA"); > > Connection conn =3D ODS.getConnection() > > > > // Insert /Update /Delete/... > > > > conn.close() --> What does this code do ? (return connection to = pool or close the connection ) > > > > Googled /yahooed but non correct answers .... > > > > Please advice > > Karthik > > > > > > _________________________________________________________________ > See how Windows Mobile brings your life together-at home, work, or on the= go. > http://clk.atdmt.com/MRT/go/msnnkwxp1020093182mrt/direct/01/ > > --------------------------------------------------------------------- > 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 > _________________________________________________________________ See how Windows connects the people, information, and fun that are part of = your life. http://clk.atdmt.com/MRT/go/msnnkwxp1020093175mrt/direct/01/ --------------------------------------------------------------------- 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