ibatis-user-cs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jehanzeb Musani" <jehanzeb.mus...@pdsr.com>
Subject RE: Mutilple Database
Date Sun, 05 Nov 2006 08:23:25 GMT
Hello,

If you want to support multiple databases simultaneously using IBatis,
you have to create two different SqlMap.config files. For example, if I
want to support SqlServer and Oracle simultaneously, I will create two
files, SqlServerSqlMap.config and OracleSqlMap.config (you can choose
whatever name you like) and specify the respective connection strings in
them. Then I have to to specify the name of these files in
Mapper.Instnae.

You can also find this in IBatis documentation (pdf one). Look for
multiple connections in the configuration.

Hope this helps.

Regards,
Jehanzeb

-----Original Message-----
From: SBP [mailto:subhash.bp@sas.com] 
Sent: Thursday, November 02, 2006 4:11 PM
To: user-cs@ibatis.apache.org
Subject: Mutilple Database


Hi,
    I am new to ibatis. How will I select from two different data bases.
if
any body have some links or codes please share. I need to implement in
my
project.

Thanks in advance
Subi
-- 
View this message in context:
http://www.nabble.com/Mutilple-Database-tf2559401.html#a7132424
Sent from the iBATIS - User - Cs mailing list archive at Nabble.com.


Mime
View raw message