Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 73575 invoked from network); 17 May 2007 03:15:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 17 May 2007 03:15:17 -0000 Received: (qmail 74601 invoked by uid 500); 17 May 2007 03:15:22 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 74576 invoked by uid 500); 17 May 2007 03:15:21 -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 74564 invoked by uid 99); 17 May 2007 03:15:21 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 20:15:21 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of larry.meadors@gmail.com designates 66.249.92.169 as permitted sender) Received: from [66.249.92.169] (HELO ug-out-1314.google.com) (66.249.92.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 May 2007 20:15:14 -0700 Received: by ug-out-1314.google.com with SMTP id m2so227486ugc for ; Wed, 16 May 2007 20:14:53 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=mMgm30xsuYg0LDA3bMr0Ycc/8k1x2n8rWbjH8fqHB0bdXFxInTCcCxsyGH0ICBzXXiR7MfHR5nSY7SvVRRwYi8GXhygZo3zPTURAEoEKNxKMxm1HWQNzan6S5xztOyX1rR77UUL6NM2JVc/YXAbWRroEkDKNA269c9Ts3h7zVYc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:reply-to:sender:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references:x-google-sender-auth; b=sg9IfscHkY1xTWmGIQQIjjFgsD2YDj/hh0rl/D0mAJrDcCVvDHmmj5jSyi6lHHAlq8Go8nj/zUl2pgB7A6BCAu/GwpmQSUqph1bG/TK9KZWvu4J7UCaRoY7dwEetQJkFvUTOWdcfgC6tFdJvUj3QClvqs12Spg+QAMuKC9zHrq8= Received: by 10.67.24.18 with SMTP id b18mr7137581ugj.1179371693179; Wed, 16 May 2007 20:14:53 -0700 (PDT) Received: by 10.66.226.20 with HTTP; Wed, 16 May 2007 20:14:53 -0700 (PDT) Message-ID: Date: Wed, 16 May 2007 21:14:53 -0600 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Setting username and password credentials for JNDI datasource In-Reply-To: <070FE4FF25BB74499CB5B0B845E9E70C06968AF0@ntemph0747m00.exssrv.nmfco.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <070FE4FF25BB74499CB5B0B845E9E70C06968AF0@ntemph0747m00.exssrv.nmfco.com> X-Google-Sender-Auth: 5be6ac1e2889f7d7 X-Virus-Checked: Checked by ClamAV on apache.org How are you creating your sql map client? Larry On 5/16/07, russengel@northwesternmutual.com wrote: > > > > My DataSources need to have their Connection's username and password > credentials set programmatically at runtime. Unfortunately, for a few > reasons, configuring them at the server level is not an option. > > The most recent postings I was able to find on this subject were from 2005, > so I wanted to put this message out there again, in case there is a solution > supported in iBATIS now, or at least an elegant workaround, that someone > else has found. > > I am able to do the following in Hibernate, and am looking for the > equivalent way to accomplish this in iBATIS: > > Configuration config = new > Configuration().configure("hibernate.cfg.xml"); > config.setProperty("hibernate.connection.username", "username"); > config.setProperty("hibernate.connection.password", "password"); > > thanks > - Russ > > This e-mail and any attachments may contain confidential information of > Northwestern Mutual. If you are not the intended recipient of this message, > be aware that any disclosure, copying, distribution or use of this e-mail > and any attachments is prohibited. If you have received this e-mail in > error, please notify Northwestern Mutual immediately by returning it to the > sender and delete all copies from your system. Please be advised that > communications received via the Northwestern Mutual Secure Message Center > are secure. Communications that are not received via the Northwestern Mutual > Secure Message Center may not be secure and could be observed by a third > party. Thank you for your cooperation. > >