Return-Path: Delivered-To: apmail-ibatis-user-java-archive@www.apache.org Received: (qmail 60023 invoked from network); 14 Oct 2009 22:40:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 22:40:18 -0000 Received: (qmail 68266 invoked by uid 500); 14 Oct 2009 22:40:17 -0000 Delivered-To: apmail-ibatis-user-java-archive@ibatis.apache.org Received: (qmail 68229 invoked by uid 500); 14 Oct 2009 22:40:17 -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 68221 invoked by uid 99); 14 Oct 2009 22:40:17 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 22:40:17 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [74.126.50.12] (HELO gw.kiewit.com) (74.126.50.12) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 22:40:15 +0000 X-IronPort-AV: E=Sophos;i="4.44,561,1249275600"; d="scan'208";a="20570552" Received: from unknown (HELO PLZHUB02.KIEWITPLAZA.COM) ([192.168.254.1]) by gw.kiewit.com with ESMTP; 14 Oct 2009 17:39:53 -0500 Received: from BIBBEXCH.KIEWITPLAZA.COM (10.10.7.79) by PLZHUB02.KIEWITPLAZA.COM (192.168.254.82) with Microsoft SMTP Server id 8.1.336.0; Wed, 14 Oct 2009 17:39:53 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: How to configure SqlMapClient for multiple Oracle RAC services? Date: Wed, 14 Oct 2009 17:39:52 -0500 Message-ID: <07094E40F055C34FA35BB28DB1670E7FB36463@bibbmail.bibb.com> In-Reply-To: <25900036.post@talk.nabble.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: How to configure SqlMapClient for multiple Oracle RAC services? Thread-Index: AcpNHdC2dW0yTbfJTRqUS6pEc1fUMwAAD8Kw References: <25849614.post@talk.nabble.com> <25900036.post@talk.nabble.com> From: Rick.Wellman To: (from the way you wrote your question) Assumption #1: You have N web-applications that each have their own Spring 'applicationContext.xml' file. Assumption #2: Until now, each configLocation property of the sqlMapClient bean has been identical. If Assumptions #1 and #2 are correct, then you have answered your own question without knowing it. Configure each application's .xml file according to the service that you identified in your original question. (No, I do not believe a single application can be configured to use more than one connection string.) -----Original Message----- From: gunacesun_ibatis [mailto:gunacesun_iBatis@yahoo.com]=20 Sent: Wednesday, October 14, 2009 5:29 PM To: user-java@ibatis.apache.org Subject: Re: How to configure SqlMapClient for multiple Oracle RAC services? Does the question make sense? Is it too trivial? Why no response?:-( gunacesun_ibatis wrote: >=20 > I've been using Spring 2.5 and iBatis 2.3 to connect to Oracle 10g. >=20 > I'm testing our move to Oracle 11g RAC. In the RAC setup, some of my apps > use one service and others use a different service. So I need to use 2 > different connection strings to connect to the DB. >=20 > For example, currently the connection string I use is something like > jdbc: oracle:thin:@host: port:SID >=20 > With RAC, I have to use 2 different connection strings like > jdbc: oracle:thin:@host: port/service1 > jdbc: oracle:thin:@host: port/service2 >=20 > I'm not sure how to set 2 different values for the configLocation property > of the sqlMapClient bean in the applicationContext.xml file. >=20 > Is this the right approach or is there a diiferent way to do this? >=20 > I posted this question on the Spring Data Access forum and I haven't had a > response in 2 days. If you have seen it on that forum I apologize. >=20 > Thanks in Advance. > Ganesh=20 >=20 --=20 View this message in context: http://www.nabble.com/How-to-configure-SqlMapClient-for-multiple-Oracle- RAC-services--tp25849614p25900036.html Sent from the iBATIS - User - Java mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org For additional commands, e-mail: user-java-help@ibatis.apache.org