You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-java@ibatis.apache.org by "Hari..." <ha...@gmail.com> on 2006/11/13 06:30:32 UTC

ibatis dao

can i specify two context in the same dao.xml file and each context accessing
data from the different  database
if so how do  use them differently

-- 
View this message in context: http://www.nabble.com/ibatis-dao-tf2620074.html#a7311692
Sent from the iBATIS - User - Java mailing list archive at Nabble.com.


Re: ibatis dao

Posted by Clinton Begin <cl...@gmail.com>.
PS:  Note that we've just deprecated the iBATIS DAO Framework.  You're still
welcome to use it, but I just thought you should know.

Clinton

On 11/12/06, Hari... <ha...@gmail.com> wrote:
>
>
> can i specify two context in the same dao.xml file and each context
> accessing
> data from the different  database
> if so how do  use them differently
>
> --
> View this message in context:
> http://www.nabble.com/ibatis-dao-tf2620074.html#a7311692
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>

Re: ibatis dao

Posted by Clinton Begin <cl...@gmail.com>.
Yep.  That's exactly what contexts are for, and you don't need to do
anything special, unless you try to use the same DAO interface in both
contexts, then you have to specify the context when you get the DAO
instance.

clinton

On 11/12/06, Hari... <ha...@gmail.com> wrote:
>
>
> can i specify two context in the same dao.xml file and each context
> accessing
> data from the different  database
> if so how do  use them differently
>
> --
> View this message in context:
> http://www.nabble.com/ibatis-dao-tf2620074.html#a7311692
> Sent from the iBATIS - User - Java mailing list archive at Nabble.com.
>
>