Matteo,
Thanks for all that information. Seeing properties in context nodes other
than where they were defined seems like a bug to me, so in case they ever
fix that, I would be careful if you ever upgrade to a newer version. Did
you happen to report that on the dev mailing list?
You might
Hello,
I've got a .net assembly invoked as a com component from unmanaged code.
I'm trying to explicitly specify the path to the Ibatis config file
(dao.config)
Via DomDaoManagerBuilder.ConfigureAndWatch(pathToDaoConfig, handler)
Even if the dao.config file is found, Ibatis cannot find
To specify an alternative path for sqlmap.config, you can use a similar method
as you did for the dao.config, calling DomSqlMapBuilder.ConfigureAndWatch.
There is sample code for that here:
http://ibatis.apache.org/docs/dotnet/datamapper/ch04s04.html
I'm not sure about providers.config; I've
Thank you for the answer but I already knew about it.
My problem is to load sqlmap.config when referenced by dao.config, as well as
the providers.config when referenced by dao.config.
Actually my question should be:
How can I specify the path to use for resolving the relative paths of the
Matteo,
In that case, I don't think it will be as simple because like you said, the
other files are found relative to the application's root directory rather than
dao.config. The only workaround I can come up with is to load your dao.config
into an XmlDocument or XDocument object and modify
Hi Dave,
shame on me for not having thought about this workaround! Thank you very much
for the good idea.
I will try it and let you know if it works for me.
Hoping for a smarter api in the next releases of Ibatis.net I will go with this.
Thank you very much for your help,
Matteo
Matteo,
You're welcome. Please let me know how it works out.
Dave
On Mar 17, 2010, at 10:43 AM, Tontini Matteo wrote:
Hi Dave,
shame on me for not having thought about this workaround! Thank you very much
for the good idea.
I will try it and let you know if it works for me.
Hoping
Dave,
Well, actually it seems to work. I made use of a property to limit the number
of nodes to update.
I only need to update the property (containing the root path) that will be used
by all other paths to files (sqlmap.config, maps, etc) and the
Resource attribute of the: 'providers'
8 matches
Mail list logo