<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: iBATIS- Accessing Multiple Instances of Databases from Your Application</title>
	<link>http://twit88.com/blog/2007/12/26/ibatis-accessing-multiple-instances-of-databases-from-your-application/</link>
	<description>New SMS Library at http://twit88.com/platform/projects/show/messagingtoolkit !</description>
	<pubDate>Thu, 18 Mar 2010 08:56:39 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3.3</generator>
		<item>
		<title>By: Gawie</title>
		<link>http://twit88.com/blog/2007/12/26/ibatis-accessing-multiple-instances-of-databases-from-your-application/#comment-47822</link>
		<dc:creator>Gawie</dc:creator>
		<pubDate>Sat, 14 Feb 2009 07:04:44 +0000</pubDate>
		<guid>http://twit88.com/blog/2007/12/26/ibatis-accessing-multiple-instances-of-databases-from-your-application/#comment-47822</guid>
		<description>Dear author,

My question is - how do I connect to different databases (using IBatis of course) - using the same context?  

E.g. I have databases with the exact schema - one database per client.  I want to use Ibatis to use the same models and configuration but SOMEHOW want to (a) either inject the connection to IBatis or (b) specify the database to use in my connection.

Additional Requirement:
(a) Cannot merge the databases.
(b) Cannot use multiple configs/contexts.
(c) No need for caching  (do this manually on the app side)
(d) All databases grouped in a single context will reside on the same server
(e) Will only execute against a single catalog within a transaction

THE FUNNY THING:
The funny thing is that I have been googling high and low for an answer to this...  and it seems like either Ibatis cannot do it, or/and that the community has absolutely no need for this functionality (which I find rather strange and disappointing).

Dear Author - am I wasting my time in trying to find an Ibatis solution (workable - don't want to rewrite Ibatis...) for this?  

Regards and thanks,
Gawie</description>
		<content:encoded><![CDATA[<p>Dear author,</p>
<p>My question is - how do I connect to different databases (using IBatis of course) - using the same context?  </p>
<p>E.g. I have databases with the exact schema - one database per client.  I want to use Ibatis to use the same models and configuration but SOMEHOW want to (a) either inject the connection to IBatis or (b) specify the database to use in my connection.</p>
<p>Additional Requirement:<br />
(a) Cannot merge the databases.<br />
(b) Cannot use multiple configs/contexts.<br />
(c) No need for caching  (do this manually on the app side)<br />
(d) All databases grouped in a single context will reside on the same server<br />
(e) Will only execute against a single catalog within a transaction</p>
<p>THE FUNNY THING:<br />
The funny thing is that I have been googling high and low for an answer to this&#8230;  and it seems like either Ibatis cannot do it, or/and that the community has absolutely no need for this functionality (which I find rather strange and disappointing).</p>
<p>Dear Author - am I wasting my time in trying to find an Ibatis solution (workable - don&#8217;t want to rewrite Ibatis&#8230;) for this?  </p>
<p>Regards and thanks,<br />
Gawie</p>
]]></content:encoded>
	</item>
</channel>
</rss>
