ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gareth Moorst <gazj...@yahoo.co.uk>
Subject Re: Dynamic addMaps
Date Thu, 02 Feb 2006 08:29:15 GMT
Sorry to butt in, but I'd like to add my tuppence to this thread:

This kind of functionality could be useful for an application I'm writing too - I've got a
single application jar, distributed via webstart, which I am considering splitting into many
separate jars, by application area. There is no middle tier for this app, it connects to the
database directly, hence the ibatis framework is part of the download.
If I split the single huge jar into a single core app jar (with reusable common sqlmaps) and
extra application jars (each with specific sqlmaps) then I'll need some way to add mappings
to the
sqlmap config dynamically. It is possible that the core jar and any combination of the application
jars could be used at any one time.
I want to avoid having a single 'data access' jar which has sqlmaps for all of the application

Gareth Moorst.

--- Nathan Maves <Nathan.Maves@Sun.COM> wrote:

> Can you give us a little more information on your problem?
> What are you trying to accomplish by using the functionality?
> Why would you not just define all of your mappings in the  
> sqlMapConfig.xml file?
> Nathan
> On Feb 1, 2006, at 6:20 AM, Marcelo Martins wrote:
> > How can i do something like this:
> >
> > SqlMapClient sqlMap = SqlMapClientBuilder.buildSqlMapClient(reader)
> >
> > sqlMap.addResource("com/foo/mapping/MyMapping.xml");
> >
> > Please, if is not possible, how can i modify ibatis to do this?

To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre.

View raw message