ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gilles Bayon" <ibatis....@gmail.com>
Subject Re: More on multiple datasources
Date Sat, 17 Mar 2007 19:22:23 GMT
You could have one SqlMapper config file and change the datasource from 1 to
2 with someting as
http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+set+the+
connection+string+per+user+in+Web+context


On 3/16/07, Wei Cheng <wicheng@yahoo.com> wrote:
>
> This maybe discussed here before but I did not see a
> clear solution so far.
>
> I need to access multiple data source at the same
> time, reading from DateSource1 and wrting to
> DataSource2. Two questions:
>
> 1) Do I have to use two mapper "config" files for
> this? There are objections among teammates to have two
> SqlMapper config files
>
> 2) Could the connection string of a SqlMapper instance
> be assigned/changed OUTSIDE the config file at
> runtime?
>
> Thanks for the information!
>
> Wei Cheng
> Canada
>
>
>
>
> ____________________________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>



-- 
Cheers,
Gilles

<a href="http://www.amazon.com/gp/registry/6JCP7AORB0LE">Wish List</a>

Mime
View raw message