ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charlton Ting" <cjt...@hotmail.com>
Subject Re: multiple datasources
Date Wed, 14 Sep 2005 19:53:44 GMT
Oh so two DAO context elements pointing to two different SqlMapConfig files 
and the appropriate queries will go to the appropriate databases?  That 
makes sense. I will give it a shot. Thanks so much.

Chuck



>From: Nathan Maves <Nathan.Maves@Sun.COM>
>Reply-To: user-java@ibatis.apache.org
>To: user-java@ibatis.apache.org
>Subject: Re: multiple datasources
>Date: Wed, 14 Sep 2005 12:53:22 -0600
>
>This is very easily done without Spring.
>
>You just need two different context elements in you dao config file.   each 
>context can connect to a different database.
>
>Nathan
>
>On Sep 14, 2005, at 12:46 PM, Jason Vinson wrote:
>
>>If you are using spring I may be able to help.  I couldn't figure  out how 
>>to
>>do it otherwise  :(
>>
>>Jason
>>
>>
>>On 9/14/05 2:36 PM, "Charlton Ting" <cjting@hotmail.com> wrote:
>>
>>
>>>Hi,
>>>
>>>I am an ibatis newbie and have a quick question. Does anyone know  if I 
>>>can
>>>(and how) to use ibatis to connect to multiple datasources? I need  to 
>>>pull
>>>data from Oracle and SQL Server databases and I'm not sure how to  
>>>configure
>>>multiple sources in the SqlMapConfig.
>>>
>>>Many thanks,
>>>
>>>Chuck
>>>
>>>
>>
>>
>>
>



Mime
View raw message