Return-Path: Delivered-To: apmail-incubator-ibatis-user-java-archive@www.apache.org Received: (qmail 45381 invoked from network); 3 Mar 2005 14:11:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 3 Mar 2005 14:11:37 -0000 Received: (qmail 15653 invoked by uid 500); 3 Mar 2005 14:11:36 -0000 Delivered-To: apmail-incubator-ibatis-user-java-archive@incubator.apache.org Received: (qmail 15630 invoked by uid 500); 3 Mar 2005 14:11:36 -0000 Mailing-List: contact ibatis-user-java-help@incubator.apache.org; run by ezmlm Precedence: bulk Reply-To: ibatis-user-java@incubator.apache.org List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list ibatis-user-java@incubator.apache.org Received: (qmail 15611 invoked by uid 99); 3 Mar 2005 14:11:36 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of bdruth@gmail.com designates 64.233.184.197 as permitted sender) Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.197) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 03 Mar 2005 06:11:32 -0800 Received: by wproxy.gmail.com with SMTP id 50so602116wri for ; Thu, 03 Mar 2005 06:11:31 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=D3jMOqaUQYXoLyjbppLAhH/GJNVXW1JaZIZ4bFZ25aRUk9aAxzvoR7WtWMtKSVN0EL92iPtNze6VnkM46F7tYvkiOnNBoR2cwtqAB3JmCb8iUfHrA2WS6whMovPa3x6DXy+pwBbHcFWjJyeQR0h+OkIibTAhNY+NkLG1x/tW+8s= Received: by 10.54.70.14 with SMTP id s14mr23277wra; Thu, 03 Mar 2005 06:11:30 -0800 (PST) Received: by 10.54.40.24 with HTTP; Thu, 3 Mar 2005 06:11:30 -0800 (PST) Message-ID: Date: Thu, 3 Mar 2005 08:11:30 -0600 From: Brice Ruth Reply-To: Brice Ruth To: ibatis-user-java@incubator.apache.org Subject: Re: Does the sqlMapConfig look at system properties? In-Reply-To: <1109840752.6726.27.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: <1109840752.6726.27.camel@localhost> X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Can you use JNDI? This way, you can store your created datasource in JNDI and if you configure iBATIS to use that JNDI resource, then your problem is solved - iBATIS will not create a new instance, it will assume that the JNDI DataSource is ready to be used. BR On Thu, 03 Mar 2005 09:05:52 +0000, Eduardo Piva wrote= : > Hi Scott, I need something like that either. I have a instance of a > datasource already created and I want to make iBatis use this instance. > It's a DBCP instance. Is there anyway I can set it, without using XML > (since iBatis will instantiate a new one)? >=20 > Thanks, >=20 > Eduardo. >=20 > Em Ter, 2005-03-01 =E0s 17:38 -0500, Scott Zhu escreveu: > > I guess the problem I'm trying to solve is that I don't have a > > pre-defined property file I can include in the sqlMapConfig.xml as the > > resource. But some of my properties in there need to be parameterized. > > For example, the DataSource value, I will fetch it from a > > configuration server at runtime. So my question is, is there a way > > that I can feed this information into the sqlMapConfig map as I build > > my sqlMapClient instance? Thanks for your help. > > >=20 >