You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user-cs@ibatis.apache.org by Rick Evans <un...@gmail.com> on 2005/09/02 21:09:28 UTC

Query - 'using Spring.NET to load the iBatis.NET object map directly'

Hiya

Ted Husted wrote:

>We use Spring.Web extensively, and, personally, I think it rocks!

Yeah baby.

>Sometime soon, I'd like to try using Spring to load the iBATIS object
map directly, so
>we can use a single configuration file throughout.

Okay I'll bite... what does the above sentence actually mean?

Are you proposing that one configure one's SqlMapper directly though
Spring.NET XML - statements, result maps, etc? Spring.NET (and Spring)
is a great integration technology... why would one want to subvert all
the bells and whistles that one gets with the 'standard' iBatis.NET
configuration files? Ok, 'subvert' is too strong a word here... I'm
all for centralising configuration, but what exactly does one 'buy' by
moving iBatis.NET configuration into Spring.NET? Am I just biting the
wrong end of the stick here? I recently committed code to the
Spring.NET CVS HEAD to facilitate the configuration of iBatis.NET
SqlMappers, DaoManagers, and Daos from within Spring.NET.... nothing
more than simple IFactoryObject implementations, because I felt that
the configuration options offered by iBatis.NET were more than
adequate.

Enlighten me Ted... if you can convince me that this is a good thing,
or show me how to remove the wrong end of the aforementioned stick
from my mouth, please do :)

Ciao
Rick

Re: Query - 'using Spring.NET to load the iBatis.NET object map directly'

Posted by Ted Husted <te...@gmail.com>.
Right now, we're using Spring.NET to load a Chain of Responsiblity
implementation that we ported from Jakarta Commons. Many of the
Commands in these Chains run iBATIS statements. When we run into one
of these commands, we often flip over to the iBATIS configuration to
review what the query actually does. In practice, the iBATIS
configuration acts like a "code-behind" for our command configuration.
I just keep thinking that it might be convenient to have both
configuration files in the same format.

-Ted.
http://www.husted.com/poe/

On 9/2/05, Rick Evans <un...@gmail.com> wrote:
> Are you proposing that one configure one's SqlMapper directly though
> Spring.NET XML - statements, result maps, etc? Spring.NET (and Spring)
> is a great integration technology... why would one want to subvert all
> the bells and whistles that one gets with the 'standard' iBatis.NET
> configuration files? Ok, 'subvert' is too strong a word here... I'm
> all for centralising configuration, but what exactly does one 'buy' by
> moving iBatis.NET configuration into Spring.NET? Am I just biting the
> wrong end of the stick here? I recently committed code to the
> Spring.NET CVS HEAD to facilitate the configuration of iBatis.NET
> SqlMappers, DaoManagers, and Daos from within Spring.NET.... nothing
> more than simple IFactoryObject implementations, because I felt that
> the configuration options offered by iBatis.NET were more than
> adequate.
> 
> Enlighten me Ted... if you can convince me that this is a good thing,
> or show me how to remove the wrong end of the aforementioned stick
> from my mouth, please do :)
> 
> Ciao
> Rick

Re: Query - 'using Spring.NET to load the iBatis.NET object map directly'

Posted by Hai Hoang <ha...@yahoo.com>.
Rick,

I like the idea of centralize configuration in
Spring.NET.  IBatis.NET has too many files,
providers.config, properties.config, SqlMap.config,
and dao.config.  I think, one central place is much
better for adopter.  Especially, if you have embedded
vs resource mode like:

<sqlMap
resource="${path}/Persistence/Map/Application.xml"/>

OR 

<sqlMap embedded="Persistence.Map.Application.xml,
Apc.Core"/>

Also, dao.config is nothing more than just inject dao
implementation.  Why not do it in spring.

Anyway, that is just my initial thought.  I don't know
enough about both products to make serious
recommendation.

Hai

--- Rick Evans <un...@gmail.com> wrote:

> Hiya
> 
> Ted Husted wrote:
> 
> >We use Spring.Web extensively, and, personally, I
> think it rocks!
> 
> Yeah baby.
> 
> >Sometime soon, I'd like to try using Spring to load
> the iBATIS object
> map directly, so
> >we can use a single configuration file throughout.
> 
> Okay I'll bite... what does the above sentence
> actually mean?
> 
> Are you proposing that one configure one's SqlMapper
> directly though
> Spring.NET XML - statements, result maps, etc?
> Spring.NET (and Spring)
> is a great integration technology... why would one
> want to subvert all
> the bells and whistles that one gets with the
> 'standard' iBatis.NET
> configuration files? Ok, 'subvert' is too strong a
> word here... I'm
> all for centralising configuration, but what exactly
> does one 'buy' by
> moving iBatis.NET configuration into Spring.NET? Am
> I just biting the
> wrong end of the stick here? I recently committed
> code to the
> Spring.NET CVS HEAD to facilitate the configuration
> of iBatis.NET
> SqlMappers, DaoManagers, and Daos from within
> Spring.NET.... nothing
> more than simple IFactoryObject implementations,
> because I felt that
> the configuration options offered by iBatis.NET were
> more than
> adequate.
> 
> Enlighten me Ted... if you can convince me that this
> is a good thing,
> or show me how to remove the wrong end of the
> aforementioned stick
> from my mouth, please do :)
> 
> Ciao
> Rick
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com