Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 42054 invoked from network); 28 Nov 2006 17:02:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2006 17:02:39 -0000 Received: (qmail 14157 invoked by uid 500); 28 Nov 2006 17:02:42 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 14141 invoked by uid 500); 28 Nov 2006 17:02:42 -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 13859 invoked by uid 99); 28 Nov 2006 17:02:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 09:02:40 -0800 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.82.238 as permitted sender) Received: from [66.249.82.238] (HELO wx-out-0506.google.com) (66.249.82.238) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Nov 2006 09:02:27 -0800 Received: by wx-out-0506.google.com with SMTP id t14so2038321wxc for ; Tue, 28 Nov 2006 09:02:07 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; 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=hQ3VydROzFS85KJIYM8q5e4Uuh513WO4W/dcEQpCMRJ72L12gNkzpEXTaM0EJnrv5JmpSOiIi+Hy6hrYY5VE8X62iaaL1TWfU8dLXo7j64it80azi9KoZgz7XJT02Ur0Ak8Z+Q7pCjPVJ1zLNbf1jjRdtnvHpwfLbxvn9LfhrGo= Received: by 10.90.117.15 with SMTP id p15mr1069354agc.1164733326856; Tue, 28 Nov 2006 09:02:06 -0800 (PST) Received: by 10.90.35.4 with HTTP; Tue, 28 Nov 2006 09:02:06 -0800 (PST) Message-ID: Date: Tue, 28 Nov 2006 10:02:06 -0700 From: "Larry Meadors" Reply-To: lmeadors@apache.org Sender: larry.meadors@gmail.com To: user-java@ibatis.apache.org Subject: Re: Ibatis - datasource config In-Reply-To: <7582192.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <7581854.post@talk.nabble.com> <7582192.post@talk.nabble.com> X-Google-Sender-Auth: 9cd54b5fc96896c3 X-Virus-Checked: Checked by ClamAV on apache.org It is an interface in iBATIS, used to make it possible to do what you are describing. Take a look at the iBATIS source, and you'll see some examples of it. Larry On 11/28/06, meenu_24 wrote: > > Hi Larry, > > thanks for your suggestion, since I am new to ibatis, can you please tell me > about the DataSourceFactory. > > Thanks > Meena > > > > Larry Meadors-2 wrote: > > > > Yep: you'll need to create an iBATIS DataSourceFactory implementation, > > but that should work just fine. > > > > Larry > > > > > > On 11/28/06, meenu_24 wrote: > >> > >> Hi all, > >> In SqlMapConfig.xml file can I specify my class which implements > >> datasource > >> in element. This is a requirement in our application > >> as we have made a failover solution for datasource wich is implemented by > >> the class, and this class has to be reffered in SqlMapConfig.xml so that > >> ibatis uses a proper datasource every time. The failover solution is if > >> one > >> datasource fails other takes over. > >> How to specify this class in transaction manager. Thanks for your time. > >> > >> thanks > >> Meena > >> > >> -- > >> View this message in context: > >> http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7581854 > >> Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > >> > >> > > > > > > -- > View this message in context: http://www.nabble.com/Ibatis---datasource-config-tf2719174.html#a7582192 > Sent from the iBATIS - User - Java mailing list archive at Nabble.com. > >