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 <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: [email protected]
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" <[EMAIL PROTECTED]> 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








Reply via email to