Sending this to the ibatis list so that
this isn’t only in my mailbox! ;-)
-----Original Message-----
From: Adhari Mahendra
[mailto:[EMAIL PROTECTED]
Sent: Friday,
February 11, 2005 2:37 AM
To: roberto
Subject: RE: How to handle
multiple datasource in IBatisNet
·
Have multiple SqlMap DAO contexts (one for each datasource/SqlMap
config) and retrieve DAOs without specifying the context?
Anyway, I've got your point, since Ibatis4Java 2.0 has interface class
is unique globally, but in IbatisNet, interface class is unique in a context,
that's why I am a litle bit confusing. So, the next question, how do I get the
list of context name? or list of DaoManager? I would like to minimize hardcode.
Adhari
roberto
<[EMAIL PROTECTED]> wrote:
Hmmm…maybe I misunderstood the meaning behind the email.
Adhari, do you want to:
·
Configure multiple SqlMap daoSessionHandlers for multiple SqlMap
configs in one context and retrieve DAOs using the one context?
- Or -
·
Have multiple SqlMap DAO contexts (one for each datasource/SqlMap
config) and retrieve DAOs without specifying the context?
Roberto
-----Original Message-----
From: roberto
[mailto:[EMAIL PROTECTED]
Sent: Tuesday,
February 08, 2005 2:26 PM
To: [EMAIL PROTECTED]
Cc: 'Gilles Bayon';
ibatis-dev@incubator.apache.org
Subject: RE: How to handle
multiple datasource in IBatisNet
Ah ok.
Hope you don’t mind that I cc’ed
the list on this since this would be good to put in JIRA (issue/feature request
tracker). AFAIK, the difference between the C# and Java implementations
is that, in Java, the Interface.class can be passed to iBATIS to get the
associated Context.
Roberto
-----Original Message-----
From: Adhari Mahendra
[mailto:[EMAIL PROTECTED]
Sent: Tuesday,
February 08, 2005 4:17 AM
To: [EMAIL PROTECTED]
Subject: RE: How to handle
multiple datasource in IBatisNet
But what I need is multiple datasource and all of context using SqlMap
handler. Also, I want it no context aware, it means, when I retrieve DAO
implementation I do not need to know what is context name of this particular
DAO, like Java version did.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
Do you Yahoo!?
Yahoo! Mail - now with 250MB free storage. Learn
more.
|