Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 10594 invoked from network); 11 Jul 2005 14:48:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 11 Jul 2005 14:48:13 -0000 Received: (qmail 40803 invoked by uid 500); 11 Jul 2005 14:48:11 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 40780 invoked by uid 500); 11 Jul 2005 14:48:10 -0000 Mailing-List: contact user-java-help@ibatis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user-java@ibatis.apache.org Delivered-To: mailing list user-java@ibatis.apache.org Received: (qmail 40767 invoked by uid 99); 11 Jul 2005 14:48:10 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2005 07:48:10 -0700 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=HTML_20_30,HTML_MESSAGE,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [203.197.24.225] (HELO InMumG01.tcs.com) (203.197.24.225) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jul 2005 07:48:07 -0700 Received: from InMumM02.tcs.com ([172.17.127.11]) by InMumG01.tcs.com with InterScan Messaging Security Suite; Mon, 11 Jul 2005 20:18:00 +0530 In-Reply-To: <00a301c585fd$1d9fd000$740112ac@kanly> To: user-java@ibatis.apache.org Subject: How to connect to database using JNDI MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5 September 26, 2003 From: amit.rogye@tcs.com Message-ID: Date: Mon, 11 Jul 2005 20:17:14 +0530 X-MIMETrack: Serialize by Router on InMumM02/TCS(Release 6.53HF361 | February 23, 2005) at07/11/2005 20:17:18,Serialize complete at 07/11/2005 20:17:18 Content-Type: multipart/alternative; boundary="=_alternative 00514F466525703B_=" X-imss-version: 2.028 X-imss-result: Passed X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5 X-imss-settings: Baseline:4 C:3 M:3 S:3 R:3 (1.0000 1.0000) X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N This is a multipart message in MIME format. --=_alternative 00514F466525703B_= Content-Type: text/plain; charset="US-ASCII" Hi all, I'm trying to use ibatis along with Oracle 9i for a web application. I've created connection pool named 'cpPMR' and data source 'dataSourcePMR' with jndi name 'jndiPMR'. Can some body tell me how can i connect to database using jndi name in a servlet. what will be my 'sql-map-config.xml'. code snippet will be really helpful. Thanks in advance. Amit Rogye Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you --=_alternative 00514F466525703B_= Content-Type: text/html; charset="US-ASCII"
Hi all,
I'm trying to use ibatis along with Oracle 9i for a web application. I've created connection pool named 'cpPMR' and data source 'dataSourcePMR' with jndi name 'jndiPMR'.
Can some body tell me how can i connect to database using jndi name in a servlet. what will be my 'sql-map-config.xml'. code snippet will be really helpful.

Thanks in advance.

Amit Rogye
Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
--=_alternative 00514F466525703B_=--