If you are like me you would like to embed sqlMap.config file for your ibatis project. Although its not provided out of the box but its very simple to implement.
All you have to do is to write your own sqlMapper implementation.The core logic revolves around building DomSqlMapBuilder.
protected static void InitMapper()
DomSqlMapBuilder builder = new DomSqlMapBuilder();
XmlDocument sqlMapConfig = Resources.GetEmbeddedResourceAsXmlDocument(“YourNamepspace.YourConfigFile.config”);
mapper = builder.Configure(sqlMapConfig) as SqlMapper;
for more details do check out http://opensource.atlassian.com/confluence/oss/display/IBATIS/How+do+I+use+an+embedded+sqlMap.config+file
When i tried running an ibattis related unit test fixtures in my exsiting test assembly I started getting this wierd error that’s a known bug documented at http://support.microsoft.com/kb/327131.
Interesting thing is that when i run that fixture in a separate assembly it works fine but as soon as i add it to existing test fixtures it crashes with this error :”The invoked member is not supported in a dynamic assembly”.
I think it has to do with how nUnit created dynamic assemblies for test fixtures internally. Unfortunately i cant change that behavior. So for now the work around is to use a separate assembly.
As i posted earlier that i will be presenting @ IASA Singapore’s chapter evening. It turned out to be an interesting session and i got the chance to interact with the audience and hear their pain points on composite architecture and enterprise mashups.
Enteprisewise initiatives, sharing data across services/apps and need for top quality tools came out as the most crucial elements to the success of composite architecture. I also heard some interesting remarks from the audience. One of the gentlement mentioned that there is nothing that composite arch/enterprise mashup offers that couldnt be done with traditional apps/services. I’d say lets look at this analogy:
“if you are travel from point x to y, you could either walk, run, ride a horse, drive, commute through train, or fly in a plane. Ofcourse it will depend on the distance b/w x and y. Among other things it will also depend on your mind set and approach. if you want to cover the distance in excess of hundreds of kilometers by riding a horse then God speed. Surely you will get there but the question is how much will it cost you in terms of time and effort”
I strongly believe in composite arhictecture and enterprise mashups. This truly leads to realization of potential promised by SOA.
when you are getting subject titled error in Visual Studio (this happens when you try to add a web reference), try using following command on vs command prompt:
This CodePlex Preview 4 release introduces new features as well as changes to the default project template. The changes to the default project template are intended to help jumpstart the most common application-building scenarios. Many of the new features focus around simple AJAX scenarios.
If you think
– you take our tea/coffee seriously
– you have lots of sugar (its indeed our fuel)
– you like to have it on your desk
Then you are not much different from earlier species of computer programmers who used to work with John Von Nuemann. Check out this interesting read
I will be talking about Composite Architecture @ IASA Singapore’s monthly chapter evening. I will discuss how the software architecture paradigm is shifting in response to agile
enterprises. This talk will intend to de-mystify composite architecture
and then in the end present available tools and technologies that can
be used to build applications and services that are based on composite
architecture.If you are in or around Singapore on 17th of July 2008 then feel free to join us.
Venue is :9 Temasek Boulevard | #35-03 Suntec Tower Two | Singapore 038989
For directions click here